View Full Version : Window recalculation layout after resize animation

11 Oct 2013, 8:50 AM
Hi, I have a window on my screen. if you get window.getSizeModel(), window has "shrinkwrap" model by default.
I change my window size by animation. after animate the window sizemodel changed to "configured".
I want to change the window sizemodel to "shrinkwrap" after animation, for auto height my window.
I don't know how can I recalculate my window layout.
doLayout or updatelayout didn't work.

14 Oct 2013, 1:09 AM
You can try window.setSize(null, null). But I believe it will cancel effect of resize with animation.

17 Oct 2013, 4:58 AM
It works well. thank you!