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

Print this page

        

*** 330,342 **** **************************************************************************/ /** {@inheritDoc} */ @Override protected void layoutChildren() { double x = scrollX; ! double headerWidth = snapSize(getRootHeader().prefWidth(-1)); double prefHeight = getHeight() - snappedTopInset() - snappedBottomInset(); ! double cornerWidth = snapSize(flow.getVbar().prefWidth(-1)); // position the main nested header getRootHeader().resizeRelocate(x, snappedTopInset(), headerWidth, prefHeight); // position the filler region --- 330,342 ---- **************************************************************************/ /** {@inheritDoc} */ @Override protected void layoutChildren() { double x = scrollX; ! double headerWidth = snapSizeX(getRootHeader().prefWidth(-1)); double prefHeight = getHeight() - snappedTopInset() - snappedBottomInset(); ! double cornerWidth = snapSizeX(flow.getVbar().prefWidth(-1)); // position the main nested header getRootHeader().resizeRelocate(x, snappedTopInset(), headerWidth, prefHeight); // position the filler region
*** 397,408 **** final Control c = tableSkin.getSkinnable(); if (c == null) { this.tableWidth = 0; } else { Insets insets = c.getInsets() == null ? Insets.EMPTY : c.getInsets(); ! double padding = snapSize(insets.getLeft()) + snapSize(insets.getRight()); ! this.tableWidth = snapSize(c.getWidth()) - padding; } clip.setWidth(tableWidth); } --- 397,408 ---- final Control c = tableSkin.getSkinnable(); if (c == null) { this.tableWidth = 0; } else { Insets insets = c.getInsets() == null ? Insets.EMPTY : c.getInsets(); ! double padding = snapSizeX(insets.getLeft()) + snapSizeX(insets.getRight()); ! this.tableWidth = snapSizeX(c.getWidth()) - padding; } clip.setWidth(tableWidth); }