JDK-8124340 : Menu : sequential menu have distance.
Type:Bug
Component:javafx
Sub-Component:scenegraph
Affected Version:8
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2013-04-15
Updated:2015-06-17
Resolved:2013-04-17
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.
I think this bug is related to RT-29551 after reading comment by
"Lubomir Nerad added a comment - Apr, 15 2013 09:15 AM
1. In that case you'll also need to add the minX, minY of the layout bounds of the Popup's root group to the calculated x, y. There is localToScreen method on a Node which was supposed to do this, but I forgot about its existence and didn't update it when fixing RT-28775. Could you file that as a separate issue?"
Have a feeling that is the issue here.
16-04-2013
[~pottsj] https://javafx-jira.kenai.com/browse/RT-29551 because of fix all coordinates moved somewhere
15-04-2013
I have tracked this down to the fact that when we work out ScreenX and ScreenY for the menu item in the first menu so that we can postion the sub-menu relative to that node. We get the wrong screen position that is used in com.sun.javafx.Utils#pointRelativeTo called from javafx.scene.control.ContextMenu#show.
A simple test of printing anchor.localToScreen(anchor.getBoundsInLocal()) in javafx.scene.control.ContextMenu#show to get screen bounds for node, if you check against a screen shot the bounds on screen are wrong by about the size of the shadow.
I have a feeling this might have been caused by the fix for RT-28775