-
15 Sep 2010 6:08 AM #1
[FIXED-302] Destroyed cmp is still isVisible()
[FIXED-302] Destroyed cmp is still isVisible()
After destroying an component, isVisible() will still return true.
Suggestion to new isVisible method...
Code:/** * Returns true if this component is visible. * @return {Boolean} True if this component is visible, false otherwise. */ isVisible: function() { var visible = !this.hidden, destroyed = this.isDestroyed, cmp = this.ownerCt; if(destroyed) { return false; } if (visible && this.rendered && cmp) { while (cmp) { if (cmp.hidden || cmp.collapsed || cmp.isDestroyed) { visible = false; break; } cmp = cmp.ownerCt; } } return visible; }
-
15 Sep 2010 3:14 PM #2
Thanks for the bug report.
Aaron Conran
@aconran
Sencha Architect Development Team
-
16 Sep 2010 3:32 PM #3
Thanks - fixed in the next release (.96).

Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-1178] Spinner field with focus has undefined dom when destroyed
By zombeerose in forum Ext 3.x: BugsReplies: 0Last Post: 4 Aug 2010, 7:36 AM -
[CLOSED] cmp.el.setHeight() breaks cmp.setHeight()
By NeoVanGoth in forum Ext 3.x: BugsReplies: 3Last Post: 9 Apr 2010, 12:08 PM -
[OPEN-808] Toolbar buttons in overflow don´t get destroyed
By defcon1 in forum Ext 3.x: BugsReplies: 0Last Post: 31 Mar 2010, 5:30 AM -
[OPEN-743][3.1.2] TabPanel not destroyed when enableTabScroll is true
By jtvoorde in forum Ext 3.x: BugsReplies: 3Last Post: 17 Mar 2010, 9:05 AM -
[2.2.1] Grid Cmp in FormPanel Cmp
By jerrywilborn in forum Ext 2.x: BugsReplies: 7Last Post: 15 Apr 2009, 10:38 AM


Reply With Quote