Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    dpeters is on a distinguished road

      0  

    Default Accordion Layout issue when hiding collapse tool

    Accordion Layout issue when hiding collapse tool


    Found a null pointer exception in the ContentPanel class (Ext GWT 3 Beta 2). When you hide the collapse tool of an AccordionLayoutContainer (setHideCollapseTool(true)), the active item widget does not expand correctly, and throws a null pointer exception. You can see the error in the ContentPanel class, in the protected void afterExpand() method:

    // Re-enable the toggle tool after an animated collapse
    if (animCollapse && collapseBtn != null) {
    collapseBtn.enable();
    }

    collapseBtn.changeStyle(appearance.collapseIcon());

    fireEvent(new ExpandEvent());


    The call to collapseBtn.changeStyle line is throwing a null pointer exception, since collapseBtn is null.

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    A quick test of AccordionLayoutContainer in Beta 3 seems to show that setHideCollapseTool no longer results in an exception, but the hiding of the collapse tool itself isn't working correctly. I'll file a ticket for the team and will update this thread once setHideCollapseTool is working as expected.

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fixed in SVN rev 2233.

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This fix has been released in beta 4. Thanks again for your analysis of the bug. We've tested the fix and it seems to work correctly.

    If you continue to notice this problem with this release, please post a reply and I'll continue following up with the team.

Thread Participants: 2