Results 1 to 3 of 3

Thread: [4.1B3] Panel collapse/expand behavior broken

    You found a bug! We've classified it as EXTJS-5488 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,042
    Vote Rating
    182
      0  

    Default [4.1B3] Panel collapse/expand behavior broken

    Collapsing and then expanding panel programmatically doesn't work.

    Siesta test case:
    Code:
    StartTest(function(t) {
        t.diag('Panel height issue: ');
    
        var p = Ext.create('Ext.Panel', {
            width: 500,
            height: 300,
            title : 'foo',
            renderTo : Ext.getBody(),
            html : 'foo'
        });
    
        p.hide();
        p.collapse();
        p.show();
        p.expand();
    
        // Wait for anim to complete
        t.waitFor(2000, function() {
            t.is(p.el.getHeight(), 300, 'Height ok');    // RETURNS 26, only header shown
        });
    });
    Using animCollapse : false then all is ok.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Vote Rating
    1288
      0  

    Default

    If the panel is hidden, the animation should be skipped and collapse should collapse it as if animCollapse as false. If the panel is shown and you do rapid calls like that (which I don't know of a use case for this to happen) I would expect it to cancel the collapsing and expand correctly.

    We will take a look at this.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Sencha User
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
      0  

    Default

    On Ext4.1.0 I have a similar issue:

    - I start with a panel inside a window,
    - I check if the panel should be expanded or not => panel.collapse() or panel.expand()
    - I make the window popup => window.show()

    Result:
    - the panel is collapsed ( in this case ) and I cannot expand it programatically or otherwise because it has some properties isCollapsingOrExpanding : 1 or collapsed: false

Posting Permissions

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