1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    179
    Vote Rating
    1
    Answers
    1
    winkelmann is on a distinguished road

      0  

    Default Unanswered: Collapsing panel breaks in hbox layout?

    Unanswered: Collapsing panel breaks in hbox layout?


    Hi there,

    I'm having some strange problem with collapsing panels within hbox layout, I'm not sure if it's a but or if I'm simply doing something wrong. In the following example, I can't seem to get the collapsible panel to uncollapse, the header seems to stay the height it was before collapsing.

    Code:
    Ext.widget('window',{
                    title: 'test collapse',
                    width: 500,
                    height: 300,
                    layout: {
                        type: 'hbox',
                        align: 'stretch'
                    },
                    items: [{
                        title: 'should not collapse',
                        collapsible: true,
                        collapseDirection: 'left',
                        flex: 1
                    },{
                        title: 'test', 
                        flex: 1
                    }]
                }).show();
    Any help is appreciated
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    Answers
    3100
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Clicking on the header won't expand the panel. It just floats the panel out and will hide after a couple seconds. The expand tool will do the actual expanding.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    179
    Vote Rating
    1
    Answers
    1
    winkelmann is on a distinguished road

      0  

    Default


    Expand is the word I was looking for there
    The problem is, that if i collapse the panel using the collapse tool, the panel hides, but the expand tool never shows. What you see in my screenshot is what the example looks like if i collapse the collapsible panel.

    If I start with collapsed: true on the collapsible panel, everything works as expected.

  4. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,078
    Vote Rating
    112
    Answers
    453
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      0  

    Default


    I'd say it's a bug. I also notice that if you switch things round to a vbox it collapses OK but expansion goes horribly wrong.

    On the plus side, it does appear to work fine in 4.1-pr1.

  5. #5
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    179
    Vote Rating
    1
    Answers
    1
    winkelmann is on a distinguished road

      0  

    Default


    Great to hear about it working in 4.1 I guess there isn't gonna be any fix for the 4.0 branch though?

  6. #6
    Sencha - Services Team tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,292
    Vote Rating
    6
    Answers
    56
    tobiu will become famous soon enough

      0  

    Default


    servus,

    i can confirm that this is working with the latest SDK build of 4.1.

    the beta should get released "soon" and it will have a completely changed layout engine. a hotfix for the current issues could take longer to create than the new version, so i recommend to wait.
    Best regards
    Tobias Uhlig
    __________


    Sencha Inc
    Tobias Uhlig, Solutions Engineer

    Private Projects:

    S-CIRCLES Social Network Engine
    Commercial Theming for Ext JS 3 & 4

  7. #7
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    179
    Vote Rating
    1
    Answers
    1
    winkelmann is on a distinguished road

      0  

    Default


    Great, looking forward to 4.1, just read the blog post and I'm loving all the changes