JDK-8125764 : Node Orientation - Combo drop down clipped
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-11-08
  • Updated: 2015-06-17
  • Resolved: 2013-07-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Run the example code.  The drop down list for a combo box in the RTL stage is clipped and not positioned properly.
Comments
Verified on 8.0b104
28-08-2013

Changeset: 691071d37f9d Author: Lubomir Nerad <lubomir.nerad@oracle.com> Date: Fri Jul 12 14:51:13 2013 +0200 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt/rev/691071d37f9d Description: Fix for RT-26135: Node Orientation - Combo drop down clipped
12-07-2013

The problem with initial popup positioning is filed separately as RT-26138. The clipping is due to Node.getMirroringCenter() not taking translation into account for the root node. The popups are typically translated by 8 pixels for the drop shadow effect. The following patch seems to work, but it might need to subtract layoutbounds.minX also -- which is done for non-root nodes in impl_getPivotX(). private double getMirroringCenter() { final Scene sceneValue = getScene(); return ((sceneValue != null) && (sceneValue.getRoot() == this)) - ? sceneValue.getWidth() / 2 + ? sceneValue.getWidth() / 2 - getTranslateX() : impl_getPivotX(); }
03-06-2013