PDA

View Full Version : Make a panel in front of a window



Elfayer
26 Jul 2012, 12:23 AM
Hi,

I have my windows by default in front of every panel, how can I make the panels in front of every window?

WillBill
26 Jul 2012, 1:11 AM
You could use toFront() / toBack().

Elfayer
26 Jul 2012, 1:28 AM
I tried but it didn't do anything :



menu.setVisible(true);
menu.toFront();

WillBill
26 Jul 2012, 1:44 AM
It has to be a floating component, it won't work otherwise.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.util.Floating-method-toFront