JDK-8118255 : [ContextMenu] prefWidth returns zero before shown (was: Node Orientation - RTL menu bar drop down menus positioned in the wrong place when first shown and at random later)
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-11-08
  • Updated: 2015-06-17
  • Resolved: 2013-07-05
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
8Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
0) Run Ensemble in RTL.
1) Got to Menu sample.
2) Pull down 'Options' (one time)
    - the first time it is aligned incorrectly to the right edge of 'Options'
    - CSS initial size bug?
3) Pull down 'Options' (again)
    - it is now aligned properly
4) Popup submenus
    - they are first aligned incorrectly to the right edge
    - the next time they sometimes are aligned correctly, then sometimes seemingly at random
    - does it have anything to do with the position of the mouse?

NOTE: HelloMenu has the "first time" bug but not the other alignment issues.
Comments
Duplicate of RT-27546.
05-07-2013

Are tests should be developed on this issue? Yes -> which one?
04-06-2013

This bug is about incorrect popup positioning due to the popup width and height not being available when first shown. This is probably related to RT-30280. The clipping on the right side is a different bug, and is covered by RT-26135.
03-06-2013

Confirmed, this is a popup problem.
07-05-2013

I think it's not a duplicate of RT-28247. This bug happens only for RTL orientation. All drop down components are impacted: ComboBox, Menu, Tooltip, ColorPicker. And all drop down components are truncated on the right side. The snapshots are attached(tested with 8.0b88). Please help to evaluate the problem. Thanks!
07-05-2013

This looks like a duplicate of RT-28247.
08-03-2013