Results 1 to 4 of 4

Thread: layout:'fit' issues in form panel

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    130

    Question layout:'fit' issues in form panel

    hi all

    i am using layout:'fit' for my form panel.
    it is taking care of width but not the length.

    it doesn't display all the fields the form has.

    anything am i missing here?

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480

    Default

    It's not the right layout, 'fit' layout is for when you want to fit a single child in it's container. E.g. If you want a Ext.FormPanel to fit an Ext.Window, you would use layout: 'fit' on the Ext.Window. If you don't explicitely provide a layout config to the Ext.FormPanel, it will use the FormLayout and that's probably the one you want to use.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    The default layout:'form' of a FormPanel can also take care of the width when your fields have an 'anchor' config option, e.g. anchor:'100%'.

  4. #4
    Sencha User
    Join Date
    Jun 2010
    Posts
    130

    Default

    thank you!

Similar Threads

  1. Child Panel Fit layout within center panel
    By Keith Chadwick in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 22 Dec 2009, 11:51 AM
  2. Issue with TabPanel nested in 'fit' layout panel
    By nerdyhearn in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 9 Oct 2008, 7:38 AM
  3. Form and Table Layout cannot have a 'fit' panel?
    By super_drone in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 7 Aug 2008, 3:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •