@@ -458,11 +458,11 @@ function renderCellText(cellText, tableControlView, allColumnBlock, columnCell,
458
458
459
459
// finalize what's in the DOM
460
460
Drawing . font ( selection , d . font ) ;
461
- setCellHeightAndPositionY ( columnCell ) ;
462
461
463
462
var renderCallback = d . wrappingNeeded ? wrapTextMaker : updateYPositionMaker ;
464
463
svgUtil . convertToTspans ( selection , gd , renderCallback ( allColumnBlock , element , tableControlView , d ) ) ;
465
- } ) ;
464
+ } )
465
+ columnCell . call ( setCellHeightAndPositionY ) ;
466
466
}
467
467
468
468
function latexEh ( content ) {
@@ -768,6 +768,7 @@ function updateYPositionMaker(columnBlock, element, tableControlView, d) {
768
768
769
769
function setCellHeightAndPositionY ( columnCell ) {
770
770
// fixme speed bottleneck 15%
771
+ window . monfera ++
771
772
columnCell
772
773
. attr ( 'transform' , function ( d ) {
773
774
var headerHeight = d . rowBlocks [ 0 ] . auxiliaryBlocks . reduce ( function ( p , n ) { return p + rowsHeight ( n , Infinity ) } , 0 ) ;
@@ -776,7 +777,7 @@ function setCellHeightAndPositionY(columnCell) {
776
777
var yOffset = rowAnchor + headerHeight ;
777
778
return 'translate(0 ' + yOffset + ')' ;
778
779
} )
779
- . select ( '.cellRect' )
780
+ . selectAll ( '.cellRect' )
780
781
. attr ( 'height' , function ( d ) { return getRow ( getBlock ( d ) , d . key ) . rowHeight ; } ) ;
781
782
}
782
783
0 commit comments