PDA

View Full Version : [DUPE-163] Problems with isVisible?



DaveC426913
27 Jul 2010, 11:34 AM
I am trying to toggle two containers from a button. The isVisible seems to be reporting inaccurate states of visibility.

My two containers are kb1 and kb2. When I hit this page, I can see both containers and all their elements.

I put this code right at the start of my button handler:


alert(Ext.getCmp('kb2').isVisible())
alert(Ext.getCmp('kb1').isVisible())

These lines return false. How can isVisible be false? I'm looking right at the containers! I've tried every different way of showing them, hiding them, visiblizing them and initializing them.

Jamie Avins
27 Jul 2010, 12:53 PM
Dupe: http://www.sencha.com/forum/showthread.php?105118-Component-isVisible-implementation-is-wrong