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

Print this page

        

*** 295,309 **** int pos = 0; for (int i = 0, max = getColumnHeaders().size(); i < max; i++) { TableColumnHeader n = getColumnHeaders().get(i); if (! n.isVisible()) continue; ! double prefWidth = snapSize(n.prefWidth(-1)); // double prefHeight = n.prefHeight(-1); // position the column header in the default location... ! n.resize(prefWidth, snapSize(h - labelHeight)); n.relocate(x, labelHeight + snappedTopInset()); // // ...but, if there are no children of this column, we should ensure // // that it is resized vertically such that it goes to the very // // bottom of the table header row. --- 295,309 ---- int pos = 0; for (int i = 0, max = getColumnHeaders().size(); i < max; i++) { TableColumnHeader n = getColumnHeaders().get(i); if (! n.isVisible()) continue; ! double prefWidth = snapSizeX(n.prefWidth(-1)); // double prefHeight = n.prefHeight(-1); // position the column header in the default location... ! n.resize(prefWidth, snapSizeY(h - labelHeight)); n.relocate(x, labelHeight + snappedTopInset()); // // ...but, if there are no children of this column, we should ensure // // that it is resized vertically such that it goes to the very // // bottom of the table header row.
*** 333,343 **** double width = 0.0F; if (getColumns() != null) { for (TableColumnHeader c : getColumnHeaders()) { if (c.isVisible()) { ! width += snapSize(c.computePrefWidth(height)); } } } return width; --- 333,343 ---- double width = 0.0F; if (getColumns() != null) { for (TableColumnHeader c : getColumnHeaders()) { if (c.isVisible()) { ! width += snapSizeX(c.computePrefWidth(height)); } } } return width;