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}");
}
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}");
}