Run attached app.js
win1 (root) only supports portrait layout. After opening win2 on top and closing it while in landscape mode, win1 is rendered also in landscape mode for a short time. This is even more visible if win2 is closed with the flip effect.
Prior to SDK 3.1.3 this was handled correctly without seeing the win1 jumping from landscape to portrait.