1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    195
    Answers
    1
    Vote Rating
    7
    winkelmann will become famous soon enough

      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
    Gainesville, FL
    Posts
    37,220
    Answers
    3522
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 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
    195
    Answers
    1
    Vote Rating
    7
    winkelmann will become famous soon enough

      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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,596
    Answers
    542
    Vote Rating
    324
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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
    195
    Answers
    1
    Vote Rating
    7
    winkelmann will become famous soon enough

      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 User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,681
    Answers
    130
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      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
    __________

    S-CIRCLES Social Network Engine

  7. #7
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    195
    Answers
    1
    Vote Rating
    7
    winkelmann will become famous soon enough

      0  

    Default


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