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,136
    Vote Rating
    189
      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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Vote Rating
    1334
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  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
  •