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

window restore not causing Stage window/height be reported changed in JavaFX 1.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: fx1.2
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      Product Version: NetBeans IDE 6.5.1 (Build 200903060201)
      Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
      System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

      Description

      I've encountered an issue after updating to 1.2 where, if I maximize the window after the application starts up and then I restore it by clicking the "Restore Down" button, the width and the height of the Stage do not get reported as changed and therefore the code that executes to reposition things inside the window does not run.This had never been an issue for me in 1.1. I also noticed that once you manually resize the window, all subsequent maximizes/restores do cause the Stage width/height to be reported as expected. Here is the code:

      public var MyStage: Stage = Stage {
      resizable: true
      width: 1100
      height: 740
      scene: Scene {
      content: [
         Circle { /* Stuff */ }
      ]
      }
      }

      override public function run()
      {
        MyStage;
      }

      var w: Number = bind MyStage.width on replace oldW {
      // reposition things, code omitted...
      //<< this code does not run for a restore after a maximize>>
      println("Resizing width {oldW} => {w}");
      }

      var h: Number = bind MyStage.height on replace oldH {
      // reposition things, code omitted...
      //<< this code does not run for a restore after a maximize>>
      println("Resizing height {oldH} => {h}");
      }

        Attachments

          Activity

            People

            Assignee:
            kcr Kevin Rushforth
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: