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

Need way of knowing location of Scene within Stage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • fx1.3
    • None
    • javafx
    • None

      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.

            tdv Dmitri Trembovetski (Inactive)
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: