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

Gtk: Stage.setResizable synchronization problem

    XMLWordPrintable

    Details

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

      Description

      Currently the following sequence of commands:

      stage.sizeToScene();
      stage.setResizable(false);

      causes the stage to acquire an incorrect size (the size the stage had before the sizeToScene call) on glass gtk port. The problem is that to make a window non-resizable on X11, its minimum size and maximum size must be set to the same value. The current implementation uses the last reported size from system, not taking into account, that this size will change eventually by the sizeToScene request.

        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: