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

Print this page

        

@@ -164,11 +164,11 @@
             final double w, final double h) {
         if (displayNode == null) {
             updateDisplayArea();
         }
 
-        final double arrowWidth = snapSize(arrow.prefWidth(-1));
+        final double arrowWidth = snapSizeX(arrow.prefWidth(-1));
         final double arrowButtonWidth = (isButton()) ? 0 :
                 arrowButton.snappedLeftInset() + arrowWidth +
                 arrowButton.snappedRightInset();
 
         if (displayNode != null) {

@@ -187,11 +187,11 @@
     @Override protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) {
         if (displayNode == null) {
             updateDisplayArea();
         }
 
-        final double arrowWidth = snapSize(arrow.prefWidth(-1));
+        final double arrowWidth = snapSizeX(arrow.prefWidth(-1));
         final double arrowButtonWidth = isButton() ? 0 :
                                         arrowButton.snappedLeftInset() +
                                         arrowWidth +
                                         arrowButton.snappedRightInset();
         final double displayNodeWidth = displayNode == null ? 0 : displayNode.prefWidth(height);