JDK-8102033 : Add property to specify how the PopupWindow's position is interpreted
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-03-25
  • Updated: 2015-06-16
  • Resolved: 2013-05-03
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 :  
Description
For regular Window-s, the x, y properties specify the position of the window's upper left corner on the Screen. In RT-28775 it was decided that for PopupWindow, the x, y will specify the position of the upper left corner of the Popup content (its origin) on the Screen instead. It was also requested to make this configurable via a boolean property.

Comments
While x and y refer to the node content, window width and height still refer to full window size including shadow. This leads to API inconsistency which is covered in RT-29891.
20-05-2013

Changeset: 8c1809835f97 Author: Lubomir Nerad <lubomir.nerad@oracle.com> Date: Fri May 03 14:30:25 2013 +0200 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt/rev/8c1809835f97 Description: Fix for RT-29194: Add property to specify how the PopupWindow's position is interpreted Unit test: javafx.stage.PopupTest.testContentAlignmentChange
16-05-2013

Proposed PopupWindow API: public final void setAlignWithContentOrigin(boolean value); public final boolean isAlignWithContentOrigin(); (maybe "get" prefix is better here?) public final BooleanProperty alignWithContentOriginProperty(); The default value is true (RT-28775).
24-04-2013