PDA

View Full Version : Window z depth



bkraut
5 Aug 2009, 6:25 AM
Hi,

I'm using the old desktop layout. Everithing works ok, except that all Ext.massagebox.alert windows are opened behind form windows.

How can I control the depth of the windows?

Best regards,
Bojan

Condor
5 Aug 2009, 6:30 AM
Are your windows and the Ext.MessageBox using the same WindowGroup manager?

If not, then you can modify the Ext.WindowMgr zseed before showing a MessageBox.

bkraut
5 Aug 2009, 6:40 AM
All forms in a desktop use the same Window manager. I don't assign a Window Manager to MessageBox. Should I do it?

mitchellsimoens
5 Aug 2009, 8:29 AM
this may be of some use. was for me:

http://extjs.com/forum/showthread.php?t=76366

bkraut
6 Aug 2009, 1:56 AM
Hi,

I traced down everithing to these lines:



Ext.apply(win, {
manager: windows,
minimizable: true,
maximizable: true
});


If I disable this all windows are positioned correctly.

Condor
6 Aug 2009, 4:19 AM
Ah.. You didn't tell use you are using the Desktop example.

I would recommend changing:

var windows = new Ext.WindowGroup();
to

var windows = Ext.WindowMgr;