Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6129 in a recent build.
  1. #1
    Touch Premium Member allistar's Avatar
    Join Date
    May 2008
    Location
    Mount Maunganui, Bay of Plenty, New Zealand
    Posts
    42
    Vote Rating
    0
    allistar is on a distinguished road

      0  

    Default [4.1.0] Collapsed fieldset does not resize parent when opened

    [4.1.0] Collapsed fieldset does not resize parent when opened


    REQUIRED INFORMATION
    Ext version tested:
    • Ext 4.1.0
    Browser versions tested against:
    • FF10.0.4
    • Chrome18.0.1025.168
    • Opera11.62
    DOCTYPE tested against: Description:
    • When an initially collapsed fieldset is opened up, the parent panel it is in does not increase in height. If the fieldset is not initially collapsed then the parent renders correctly
    Steps to reproduce the problem:
    • Create a panel with a "fit" layout but with no height specified
    • Add a fieldset with a height of 200 and "collapsed" set to true
    The result that was expected:
    • when the fieldset is expanded the parent panel should also increase in height
    The result that occurs instead:
    • the parent panel does not increase in height
    Test Case:
    Code:
    var form = Ext.create('Ext.form.Panel', {
      title: 'Company data',
      frame: true,
      bodyPadding: 5,
      width: 870,
      items: [{
        height: 200,
        layout: 'fit',
        margin: '0 0 3 0',
        xtype: 'fieldset',
        collapsible: true,
        collapsed: true,
        title: "Field set"
      }],
      renderTo: bd
    });
    HELPFUL INFORMATION
    Operating System:
    • Gentoo Linux
    • WinXP Pro

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,075
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    See if this is what you are looking for:

    Code:
    var form = Ext.create('Ext.form.Panel', {
        renderTo: Ext.getBody(),
        frame: true,
        title: 'Simple Form with FieldSets',
        width: 350,
        items: [{
            xtype: 'fieldset',
            title: 'Field Set',
            collapsible: true,
            collapsed: true,
            defaultType: 'textfield',
            layout: 'anchor',
            defaults: {
                anchor: '100%'
            },
            items: [{
                fieldLabel: 'Home',
                name: 'home',
                value: '(888) 555-1212'
            }, {
                fieldLabel: 'Business',
                name: 'business'
            }, {
                fieldLabel: 'Mobile',
                name: 'mobile'
            }, {
                fieldLabel: 'Fax',
                name: 'fax'
            }]
    
        }]
    });‚Äč
    Regards,
    Scott.

  3. #3
    Touch Premium Member allistar's Avatar
    Join Date
    May 2008
    Location
    Mount Maunganui, Bay of Plenty, New Zealand
    Posts
    42
    Vote Rating
    0
    allistar is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    See if this is what you are looking for:
    Thanks, but no, it doesn't make any difference. I have a fieldset with an explicit height and no children. It only expands properly if it starts expanded. (My actual issue is when a chart is in the field set, but the problem happens with nothing in the field set).
    Last edited by allistar; 3 May 2012 at 5:02 PM. Reason: changed "grap" to "chart"

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,989
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Yes, can confirm this has a bug, pushed to the tracker. Thanks for the test case.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2

Tags for this Thread