How to close a wiget while opening another onMouseClick

ss884 years ago

Hello,

I am creating a Panel on MouseClick and i add as an item a button in that Panel. In that last Button i added a handler onMouseClick which closes the current Panel and open another with Ext.Create but the Panel still shows overlapping the second one created. How to avoid this behavior ? i tried to hide() but it's not working.

ss884 years ago

I tried (in the the handler ) to add this code :

 var window =  Ext.create('widget.window', {
                hideMode: 'visibility'
             });
              window.hide();


But nothing

ss884 years ago

Sorry for troubling you chaps, it's solved now.