A scene sits within a Stage offset by the stages insets caused by window decorations on desktop platforms. The developer needs a way to know these insets so that a Stage can be resized to fit a particular sized content. Like what is done for them at startup by setting the Scene's width and height and not setting them on Stage. The suggestion is to add "stageArea:javafx.geom.Rectangle2D" attribute to Stage which contains the location of the Scene within the Stage. With this information the developer has they need to be able to resize the Stage or calculate the location of any content relative to the screen.
- blocks
-
JDK-8107810 There is no way to obtain node coordinates on the screen
- Closed
- duplicates
-
JDK-8105276 no way to explicitly pack a Stage
- Closed
- relates to
-
JDK-8099403 No way to determine Node screen coordinates.
- Closed