-
13 Aug 2010 3:15 AM #1
[FNR] AccordionLayout does not remove Listeners, when Components are removed
[FNR] AccordionLayout does not remove Listeners, when Components are removed
Hello,
In AccordionLayout the method onRemove() contains the following lines:
component.addListener(Events.BeforeExpand, listener);
component.addListener(Events.Expand, listener);
these lines should be:
component.removeListener(Events.BeforeExpand, listener);
component.removeListener(Events.Expand, listener);
See the attached test case (Gxttest.java.txt). It creates a western and an eastern panel. Pressing the button in the middle, "panel two" should be removed from the western panel and be added to the eastern panel. If I now expand "panel two", "panel one" is collapsed although it is in a different Accordion. After applying the above mentioned fix, this doesn't happen.
Regards,
julisys.
-
13 Aug 2010 3:19 AM #2
Fixed in SVN as of revision 2179
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
ContainerClear. Plugin to cause Container.remove to remove removed Components
By Animal in forum Ext 3.x: User Extensions and PluginsReplies: 5Last Post: 13 Dec 2010, 5:23 AM -
[FNR] NPE appears after container is removed and then added into DOM in GXT 2.1.1
By christin in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 11 Jun 2010, 6:32 AM -
[FNR] AccordionLayout::setActiveItem doesn't collapse the expanded panel.
By jcai in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 8 Apr 2010, 3:54 AM -
[FNR] Tree not visible in AccordionLayout
By Frank.iia in forum Ext GWT: Bugs (2.x)Replies: 9Last Post: 12 Mar 2010, 8:06 AM -
[2.??] Observable.relayEvents() listeners never removed?
By roytmana in forum Ext 2.x: BugsReplies: 3Last Post: 17 Jul 2008, 11:32 PM


Reply With Quote