changeset 1053:0e266969dcbf

RT-20359: ComboBox does not receive all mouse released events
author jgiles
date Wed, 16 May 2012 11:37:44 +1200
parents ba15de29d459
children c6d0fedcdca2
files javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ComboBoxBaseBehavior.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ComboBoxBaseBehavior.java	Wed May 16 11:20:05 2012 +1200
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/ComboBoxBaseBehavior.java	Wed May 16 11:37:44 2012 +1200
@@ -182,9 +182,8 @@
 
     @Override public void mouseEntered(MouseEvent e) {
         if (getControl().isEditable()) {
-            // Fix for RT-19274
             Node arrowButton = getControl().lookup("#arrow-button");
-            mouseInsideButton = arrowButton != null && arrowButton.contains(e.getX(), e.getY());
+            mouseInsideButton = arrowButton != null && arrowButton.localToScene(arrowButton.getBoundsInLocal()).contains(e.getSceneX(), e.getSceneY());
         } else {
             mouseInsideButton = true;
         }