You found a bug! We've classified it as EXTJS-11400 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member sonata82's Avatar
    Join Date
    Aug 2011
    Posts
    19
    Vote Rating
    9
    sonata82 will become famous soon enough

      0  

    Default Collapsed Grid in Ext.layout.container.Box can't be expanded

    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.2.1 rev 883
    • Ext 4.2.0
    Browser versions tested against:
    • IE 8, 9
    • Firefox 21 (firebug 1.11.4)
    • Chrome 29.0.1547.76 m
    DOCTYPE tested against:
    • HTML5
    Description:
    • When a Grid is collapsible, is inside a Box layout and is initially rendered collapsed, the Grid can no longer be expanded by the user.
    Steps to reproduce the problem:
    • Make a Grid collapsible
    • Place it inside an Box layout
    • Set collapsed to true
    • Give it a flex value
    The result that was expected:
    • A collapsed Grid, that can be expanded.
    The result that occurs instead:
    • A collapsed Grid, that can't be expanded.
    Test Case:

    See fiddle: https://fiddle.sencha.com/#fiddle/nl



    HELPFUL INFORMATION


    Screenshot or Video:
    • See fiddle
    Debugging already done:
    • Just trying to understand the layouting, nothing that would help here
    Possible fix:
    • None
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Windows 7

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    8,573
    Vote Rating
    228
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      0  

    Default

    Thanks for the report! We have opened a bug in our bug tracker.


    Join me at SenchaCon 2016!

  3. #3
    Sencha Premium Member sonata82's Avatar
    Join Date
    Aug 2011
    Posts
    19
    Vote Rating
    9
    sonata82 will become famous soon enough

      1  

    Default

    For those interested in a dirty workaround:

    Code:
    var p = Ext.ComponentQuery.query('#panel');
    
    Ext.defer(function() {
        p[0].collapse(undefined, false);
    }, 1);
    https://fiddle.sencha.com/#fiddle/o2

  4. #4
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    8,573
    Vote Rating
    228
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      0  

    Default

    Thanks for taking the time to share your workaround with the community.


    Join me at SenchaCon 2016!

Thread Participants: 1