PDA

View Full Version : setting or getting visibility is buggy?



DaveC426913
27 Jul 2010, 12:23 PM
I'm trying to toggle a panel. I cannot get the visible state to report accurately.

In a nutshell, this code returns false.


tapHandler: function(button, event){
Ext.getCmp('kb2').setVisible(true);
alert(Ext.getCmp('kb2').isVisible())
}




xtype: 'container',
id: 'kb2',
items: [{
xtype: 'container',
defaults: {
scope: this,
handler: this.tapHandler
},
layout: 'hbox',
items: [
{ xtype: 'button', text: 'Q'},
etc.