Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit d4aca80

Browse files
committed
tentative 4
1 parent cb0d8f6 commit d4aca80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/traces/table/plot.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,15 @@ function setCellHeightAndPositionY(columnCell) {
488488
var l = getBlock(d);
489489
var row = getRow(l, d.key)
490490

491-
var rowAnchr = 0;
491+
var rowAnchor = 0;
492492
for(var i = 0; i < l.rows.length; i++) {
493493
if(l.rows[i] === row) break;
494-
rowAnchr += l.rows[i].rowHeight;
494+
rowAnchor += l.rows[i].rowHeight;
495495
}
496496

497-
var rowOffs = rowAnchr + firstRowAnchor(d.rowBlocks, l.key) - d.column.anchor;
498-
var yOffset = rowOffs + d.rowBlocks[0].auxiliaryBlocks.reduce(function(p, n) {return p + totalHeight(n)}, 0);
497+
var rowOffs = rowAnchor + firstRowAnchor(d.rowBlocks, l.key) - d.column.anchor;
498+
var headerHeight = d.rowBlocks[0].auxiliaryBlocks.reduce(function(p, n) {return p + totalHeight(n)}, 0);
499+
var yOffset = rowOffs + headerHeight;
499500
return 'translate(' + 0 + ' ' + yOffset + ')';
500501
})
501502
.select('.cellRect')

0 commit comments

Comments
 (0)