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

Print this page

        

@@ -330,13 +330,13 @@
      **************************************************************************/
 
     /** {@inheritDoc} */
     @Override protected void layoutChildren() {
         double x = scrollX;
-        double headerWidth = snapSize(getRootHeader().prefWidth(-1));
+        double headerWidth = snapSizeX(getRootHeader().prefWidth(-1));
         double prefHeight = getHeight() - snappedTopInset() - snappedBottomInset();
-        double cornerWidth = snapSize(flow.getVbar().prefWidth(-1));
+        double cornerWidth = snapSizeX(flow.getVbar().prefWidth(-1));
 
         // position the main nested header
         getRootHeader().resizeRelocate(x, snappedTopInset(), headerWidth, prefHeight);
 
         // position the filler region

@@ -397,12 +397,12 @@
         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;
+            double padding = snapSizeX(insets.getLeft()) + snapSizeX(insets.getRight());
+            this.tableWidth = snapSizeX(c.getWidth()) - padding;
         }
 
         clip.setWidth(tableWidth);
     }