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

Gtk: After a Stage's Scene is replaced, the new Scene reports incorrect location (x,y coordinates)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u45
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      Linux Mint 15 with Java 1.7.0_45-b18.

      Description

      To reproduce:
      - Create a Scene and set it into a Stage.
      - Show the Stage.
      - Replace the Stage's Scene with another Scene.

      Observed behaviour:
      - The first Scene reported the correct coordinates ( (3,24) in the machine where I tested this) but the new Scene wrongly reports its (x,y) coordinates as (0,0). Trying to get the absolute position of Nodes (which requires knowing the Scene's coordinates) will not work because of this issue.

      Expected behaviour:
      - The new Scene should report its location correctly, considering the native Window decorations.

      Code to reproduce the problem can be found in the StackOverflow question regarding this issue:

      http://stackoverflow.com/questions/19988580/how-to-get-the-correct-location-of-a-scene-after-it-has-been-replaced-in-the-sta

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: