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

Gtk: Window.centerOnScreen synchronization problems

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:

      Description

      Sequence of Window.sizeToScene immediately followed by Window.centerOnScreen is problematic for the gtk port. The centerOnScreen in this sequence needs the correct window with and height, so it needs the sizeToScene to finish synchronously with all its notifications (which set the correct window with and height from the known content width and height). We have no good way how to wait for these notifications produced by sizeToScene so we will need to synthesize them manually. For this we need to know the size of the window decorations. But in general these are not known until the window is displayed, so we will need some correction mechanism for any mistakes done in centerOnScreen.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: