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

Commit 635ec61

Browse files
committed
minor
1 parent b5151c0 commit 635ec61

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
@@ -347,7 +347,7 @@ function splitToPanels(d) {
347347
var revolverPanel1 = extendFlat({}, d, {
348348
key: 'cells1',
349349
type: 'cells',
350-
anchor: 0, // will be mutated on scroll; points to current place
350+
anchor: 0,
351351
page: 0,
352352
dragHandle: false,
353353
values: d.calcdata.cells.values[d.specIndex],
@@ -356,13 +356,14 @@ function splitToPanels(d) {
356356
var revolverPanel2 = extendFlat({}, d, {
357357
key: 'cells2',
358358
type: 'cells',
359-
anchor: d.calcdata.rowBlocks[1] ? -totalHeight(d.calcdata.rowBlocks[1]) : 0, // will be mutated on scroll; points to current place
359+
anchor: 0,
360360
page: -1,
361361
dragHandle: false,
362362
values: d.calcdata.cells.values[d.specIndex],
363363
rowBlocks: d.calcdata.rowBlocks
364364
});
365-
return [revolverPanel1, revolverPanel2, headerPanel]; // order due to SVG using painter's algo
365+
// order due to SVG using painter's algo:
366+
return [revolverPanel1, revolverPanel2, headerPanel];
366367
}
367368

368369
function splitToCells(d) {
@@ -427,7 +428,7 @@ function makeDragRow(cellsColumnBlock) {
427428
var yTranslate = d.anchor - scrollY;
428429

429430
return 'translate(0 ' + yTranslate + ')';
430-
});
431+
})//.call(setColumnBlockPositionY);
431432
if(anchorChanged) {
432433
window.clearTimeout(d.currentRepaint);
433434
d.currentRepaint = window.setTimeout(function () {

0 commit comments

Comments
 (0)