JDK-8115046 : Context menu is shifted to the right from the expected position
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-30
  • Updated: 2015-06-17
  • Resolved: 2013-09-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
Relates :  
Description
To reproduce run the app in plugin mode and click on the 'Menu' label.
The popup is expected to appear below the label aligned with its left boundary. But it will be shifted to the right.
Comments
Target build: b108
12-09-2013

Fixed with the fix for RT-29891.
12-09-2013

On Win 7 with b92 there is the same issue
07-06-2013

Indeed, when you move app close to the left border the space increases. And it happens not only in jnlp or plugin mode but also in a standalone mode.
07-06-2013

OK, I can get a little offset when I run the ContextMenuBug in browser in fullscreen mode. In that case there is only a minimal space between the menu header and the edge of the screen (I assume this offset is even smaller on Windows 8). So the position of the context menu popup is auto-fixed to be fully displayed on the screen (including the shadow on the left edge). Dmitry, can you confirm that this is the problem you report (please try to move the menu bar to the right and check whether the Popup offset disappears)? I don't have Windows 8 to test this on.
07-06-2013

Can you reproduce the problem also in the standalone mode?
07-06-2013

Yes, I'm sure. I also have modified policy file on my machine.
07-06-2013

Dmitry, I can't reproduce this issue on jre1.8.0b89. The first time I ran it, the usage of VersionInfo in ContextMenuBug.java caused a SecurityException and so I needed to add "accessClassInPackage.com.sun.javafx.runtime" permission to the policy file. After that the application runs, but the Popup always shows on the expected coordinates. Did you have the same problem with VersionInfo? Are you sure you are running the java plugin with the reported java version?
06-06-2013

Assigning to the scenegraph team for further review - there was a recent fix for this issue I believe.
05-06-2013

RULE ControlsAutomatedTestSuite/javafx/scene/control/test/PopupMenuTest/insertTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds
30-05-2013