Forum /
Ext JS Community Forums 3.x /
Ext 3.x: Help & Discussion /
Sencha User
Explicitly set Ext.Window body size
Explicitly set Ext.Window body size
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.
Sencha - Community Support Team
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.
Similar Threads
By julianomoreira in forum Sencha Touch 1.x: Discussion
Replies: 0
Last Post: 20 Sep 2010, 1:44 PM
By draduc in forum Ext 3.x: Bugs
Replies: 3
Last Post: 27 Jul 2010, 10:47 AM
By Surgeon in forum Ext 2.x: Help & Discussion
Replies: 1
Last Post: 20 Aug 2008, 3:38 AM
By SteveEisner in forum Ext 1.x: Help & Discussion
Replies: 4
Last Post: 17 Jul 2007, 6:53 AM
By vtswingkid in forum Ext 2.x: Help & Discussion
Replies: 5
Last Post: 23 Feb 2007, 7:39 AM
Tags for this Thread
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us