modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableRowSkinBase.java

Print this page

        

*** 352,370 **** isVisible = isColumnPartiallyOrFullyVisible(tableColumn); height = fixedCellSize; } else { height = Math.max(controlHeight, tableCell.prefHeight(-1)); ! height = snapSize(height) - snapSize(verticalPadding); } if (isVisible) { if (fixedCellSizeEnabled && tableCell.getParent() == null) { getChildren().add(tableCell); } ! width = tableCell.prefWidth(height) - snapSize(horizontalPadding); // Added for RT-32700, and then updated for RT-34074. // We change the alignment from CENTER_LEFT to TOP_LEFT if the // height of the row is greater than the default size, and if // the alignment is the default alignment. --- 352,370 ---- isVisible = isColumnPartiallyOrFullyVisible(tableColumn); height = fixedCellSize; } else { height = Math.max(controlHeight, tableCell.prefHeight(-1)); ! height = snapSizeY(height) - snapSizeY(verticalPadding); } if (isVisible) { if (fixedCellSizeEnabled && tableCell.getParent() == null) { getChildren().add(tableCell); } ! width = tableCell.prefWidth(height) - snapSizeX(horizontalPadding); // Added for RT-32700, and then updated for RT-34074. // We change the alignment from CENTER_LEFT to TOP_LEFT if the // height of the row is greater than the default size, and if // the alignment is the default alignment.
*** 433,443 **** // Request layout is here as (partial) fix for RT-28684. // This does not appear to impact performance... tableCell.requestLayout(); } else { ! width = snapSize(tableCell.prefWidth(-1)) - snapSize(horizontalPadding); if (fixedCellSizeEnabled) { // we only add/remove to the scenegraph if the fixed cell // length support is enabled - otherwise we keep all // TableCells in the scenegraph --- 433,443 ---- // Request layout is here as (partial) fix for RT-28684. // This does not appear to impact performance... tableCell.requestLayout(); } else { ! width = snapSizeX(tableCell.prefWidth(-1)) - snapSizeX(horizontalPadding); if (fixedCellSizeEnabled) { // we only add/remove to the scenegraph if the fixed cell // length support is enabled - otherwise we keep all // TableCells in the scenegraph