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.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Run the code, look at the image.
Comments
Don't forget to put fix version please.
26-09-2013

Changeset: b673e4244b2a Author: Lubomir Nerad <lubomir.nerad@oracle.com> Date: Wed Apr 17 14:41:02 2013 +0200 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt/rev/b673e4244b2a Description: Fix for RT-29728: Menu : sequential menu have distance. Unit tests: javafx.stage.PopupTest.testLocalToScreenWithContentAlignment javafx.stage.PopupTest.testScreenToLocalWithContentAlignment
16-05-2013

Affected tests: ControlsAutomatedTestSuite/javafx/scene/control/test/colorpicker/ColorPickerTest/keyboardEnterInPopupTest ControlsAutomatedTestSuite/javafx/scene/control/test/colorpicker/ColorPickerTest/deleteActionInPalletePopupTest ControlsAutomatedTestSuite/javafx/scene/control/test/colorpicker/ColorPickerTest/gradientsCorrectnessTest ControlsAutomatedTestSuite/javafx/scene/control/test/colorpicker/ColorPickerTest/keyboardArrowHorizontalNavigationInPopupTest ControlsAutomatedTestSuite/javafx/scene/control/test/colorpicker/ColorPickerTest/keyboardArrowVerticalNavigationInPopupTest
17-04-2013

Target Build: b87
17-04-2013

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
15-04-2013