There is no way to determine screen coordinates of a node.
I could get coordinates of a node in Scene by localToScene method, I could get screen coordinates of a Stage.
But Scene.x and Scene.y are always 0.
So, if Stage.style is StageStyle.DECORATED there is a window border width (which affects x coordinate) and title height (which affects y).
This is a blocker for UI test automation.
I could get coordinates of a node in Scene by localToScene method, I could get screen coordinates of a Stage.
But Scene.x and Scene.y are always 0.
So, if Stage.style is StageStyle.DECORATED there is a window border width (which affects x coordinate) and title height (which affects y).
This is a blocker for UI test automation.
- relates to
-
JDK-8099329 Need way of knowing location of Scene within Stage
- Resolved
-
JDK-8098203 need utility methods for converting to/from screen coordinates
- Closed