changeset 7886:77ee61dc5811

RT-38407 RTL orientation, ComboBox popup is not aligned with the ComboBox. Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Wed, 03 Sep 2014 09:21:51 +0200
parents d702e4ad5227
children dc9971d9268f
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ComboBoxPopupControl.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ComboBoxPopupControl.java	Wed Sep 03 09:09:12 2014 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/ComboBoxPopupControl.java	Wed Sep 03 09:21:51 2014 +0200
@@ -83,9 +83,7 @@
     }
     
     private Point2D getPrefPopupPosition() {
-        double dx = 0;
-        dx += (getSkinnable().getEffectiveNodeOrientation() == NodeOrientation.RIGHT_TO_LEFT) ? -3 : 0;
-        return com.sun.javafx.Utils.pointRelativeTo(getSkinnable(), getPopupContent(), HPos.CENTER, VPos.BOTTOM, dx, 0, false);
+        return com.sun.javafx.Utils.pointRelativeTo(getSkinnable(), getPopupContent(), HPos.CENTER, VPos.BOTTOM, 0, 0, false);
     }
     
     private void positionAndShowPopup() {