Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6288559

Browse files
committed
minor simplification before rewiring event handlers to enable text copy
1 parent 94338f4 commit 6288559

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/traces/table/plot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ module.exports = function plot(gd, wrappedTraceHolders) {
150150
return d.dragHandle ? 'ew-resize' : 'auto';
151151
});
152152

153+
var headerColumnBlock = columnBlock.filter(headerBlock);
153154
var cellsColumnBlock = columnBlock.filter(cellsBlock);
154155

155156
cellsColumnBlock
@@ -166,8 +167,8 @@ module.exports = function plot(gd, wrappedTraceHolders) {
166167

167168
// initial rendering: header is rendered first, as it may may have async LaTeX (show header first)
168169
// but blocks are _entered_ the way they are due to painter's algo (header on top)
169-
renderColumnCellTree(gd, tableControlView, columnBlock.filter(headerBlock), columnBlock);
170-
renderColumnCellTree(gd, tableControlView, columnBlock.filter(cellsBlock), columnBlock);
170+
renderColumnCellTree(gd, tableControlView, headerColumnBlock, columnBlock);
171+
renderColumnCellTree(gd, tableControlView, cellsColumnBlock, columnBlock);
171172

172173
var scrollAreaClip = tableControlView.selectAll('.scrollAreaClip')
173174
.data(gup.repeat, gup.keyFun);

0 commit comments

Comments
 (0)