PDA

View Full Version : Explicitly set Ext.Window body size



ChrisR
8 May 2011, 11:08 PM
Is there a way to explicitly set the window's body size and have the window component adapt to that? There is the setSize() method on Ext.Window but that only sets the whole window size. I could calculate the extra space the window frame, button footer, etc ... take but that seems a rather unreliable way of calculating dimensions.

friend
9 May 2011, 6:36 AM
Would autoHeight: true and autoWidth: true do what you want? (assuming that all children of the window explicitly declare a height/width).

Note that I've had problems in Google's Chrome browser when autoWidth: true was set, but otherwise IE and Firefox played nice.