title: Changing stage width/height then switching scene does not update the UI in the new scene
body: <p>I have two scenes A and B and a stage.</p>
  <p>If I'm in scene A, and change the stage width / height, it will update the UI to scale it to the new stage dimensions.</p>
  <p>However if from there I switch to scene B, the UI in scene B will not be updated till I force a update by doing something like resizing the screen or opening and closing the stage.</p>
  <p>Is there a way to update all scenes when the stage width / height is changed? Since only one scene can be set to the stage at one time the current changes are not applying automatically to all scenes.</p>
  <p>Here's a minimal reproduced example.</p>
  <pre><code>    @Override
      public void start(Stage stage) throws Exception {
          
            stage.setWidth(400);
            stage.setHeight(400);
          
            Scene scene1, scene2;
            
            BorderPane layout1 = new BorderPane();
            Button buttontosecond = new Button(&quot;go to second page&quot;);
            layout1.setCenter(buttontosecond);
            scene1 = new Scene(layout1, stage.getWidth(), stage.getHeight());
            
          
            BorderPane layout2 = new BorderPane();
            Button buttonsize = new Button(&quot;change size&quot;);   
            Button buttontomain = new Button(&quot;back to main&quot;);
            VBox vbox = new VBox(buttonsize, buttontomain);
            
            
            vbox.setAlignment(Pos.CENTER);
  
            
            layout2.setCenter(vbox);
            scene2 = new Scene(layout2, stage.getWidth(), stage.getHeight());
            
            buttontomain.setOnAction(actionEvent -&gt; {stage.setScene(scene1);});
            buttontosecond.setOnAction(actionEvent -&gt; {stage.setScene(scene2);});
            buttonsize.setOnAction(actionEvent -&gt; {stage.setWidth(200);stage.setHeight(200);});
  
  
            stage.setScene(scene1);
            stage.show();
  
      }
  
  
  </code></pre>