Hybrid View

  1. #1
    Sencha User ChrisR's Avatar
    Join Date
    Apr 2007
    Location
    Belgium
    Posts
    83
    Vote Rating
    0
    ChrisR is on a distinguished road

      0  

    Question 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.
    Webdevelopment : Skyrocket Concepts

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    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

  1. Body Font-size
    By julianomoreira in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 20 Sep 2010, 1:44 PM
  2. Replies: 3
    Last Post: 27 Jul 2010, 10:47 AM
  3. Replies: 1
    Last Post: 20 Aug 2008, 3:38 AM
  4. Any way to explicitly set post body with Ajax.request?
    By SteveEisner in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 17 Jul 2007, 6:53 AM
  5. basicdialog without buttons -- invalid body size & posit
    By vtswingkid in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 23 Feb 2007, 7:39 AM

Thread Participants: 1

Tags for this Thread