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

PopupControl doesn't update its position after the main stage is dragged (Windows/Linux)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11
    • javafx
    • None

      On Windows and Linux, but not on macOS, after showing a PopupControl window from the main stage, if the main window position changes, the popup window remains at the same initial location.

      The attached test can be used to reproduce the issue.

      Steps:
      - Run the application, with any JDK and JavaFX version.
      - Click the Show button, a popup is displayed (as expected, see pics macOS1.png, Linux1.png, Windows1.png)
      - Drag the main stage to a different location, on Linux/Windows the popupControl window remains at the same location (unexpected, see pics Linux2.png, Windows2.png), while on macOS the popupControl window follows the main window (as expected, see macOS2.png).

      Tested on Windows 11, Ubuntu 22.04, macOS 15.0.1 with latest JDK and JavaFX versions (but any other will do).

        1. Windows2-2.png
          Windows2-2.png
          110 kB
        2. Windows1-2.png
          Windows1-2.png
          82 kB
        3. PopOverControlTest.java
          1 kB
        4. macOS2-2.png
          macOS2-2.png
          193 kB
        5. macOS1-2.png
          macOS1-2.png
          140 kB
        6. linux2-1.png
          linux2-1.png
          192 kB
        7. linux1-1.png
          linux1-1.png
          200 kB

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: