changeset 1132:e8b7fef315c2

RT-20591: wrong rendering of ComboBox with "-fx-border-insets", "-fx-border-image-source" and "-fx-padding"
author jgiles
date Thu, 24 May 2012 09:17:50 +1200
parents 4433b44f1375
children 18327fc36781
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxBaseSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxBaseSkin.java	Thu May 24 07:06:47 2012 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxBaseSkin.java	Thu May 24 09:17:50 2012 +1200
@@ -155,7 +155,7 @@
         
         if (isButton()) return;
         
-        arrowButton.resize(arrowButtonWidth, getHeight());
+        arrowButton.resize(arrowButtonWidth, getHeight() - padding.getTop() - padding.getBottom());
         positionInArea(arrowButton, getWidth() - padding.getRight() - arrowButtonWidth, 0, 
                 arrowButtonWidth, getHeight(), 0, HPos.CENTER, VPos.CENTER);
     }