Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8124751

Fix usage of Window.getX(), Window.getY() in controls

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None

      Description

      With fix for RT-28775, the Popup x, y coordinates no longer specify the upper left corner of the window, but some inner point of it. This means that any conversion from window coordinates to screen coordinates and back which uses only the Window x, y position won't work for these shifted popup windows. All such conversions in Scenegraph code were fixed in RT-29728 including the Node.localToScreen and Node.screenToLocal conversion methods. Similarly usage of Window.getX() and Window.getY() usage should be investigated and fixed in controls code. Whenever possible the Node.localToScreen and Node.screenToLocal should be used.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgiles Jonathan Giles
                Reporter:
                lnerad Ľubomír Nerád
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: