When you show an ext:Window, is there a way to ensure the window size is not higher or wider than the browser area - at the moment it can be, and you lose the top and bottom bars, and cannot close the window!

I assume I could write a script to do this, but just wondering if anyone has done this and has a way they can share to make it work across an application.

Cheers.