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

Print this page

        

*** 298,308 **** final Node d = cell.getDisclosureNode(); final double prefHeight = (d == null) ? pref : Math.max(d.prefHeight(-1), pref); // RT-30212: TreeCell does not honor minSize of cells. // snapSize for RT-36460 ! return snapSize(Math.max(cell.getMinHeight(), prefHeight)); } /** {@inheritDoc} */ @Override protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) { if (fixedCellSizeEnabled) { --- 298,308 ---- final Node d = cell.getDisclosureNode(); final double prefHeight = (d == null) ? pref : Math.max(d.prefHeight(-1), pref); // RT-30212: TreeCell does not honor minSize of cells. // snapSize for RT-36460 ! return snapSizeY(Math.max(cell.getMinHeight(), prefHeight)); } /** {@inheritDoc} */ @Override protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) { if (fixedCellSizeEnabled) {