View Full Version : show() window inside <div>?

30 Oct 2013, 3:00 AM
I have a HTML structure like this:

<div id="appLayer">
<div id="someMenu"></div>

When I show() a window it gets rendered directly into the <body>

The problem is, I need <div id="someMenu"> to be over the windows.
Since IE7 has a z-index problem, the <div id="someMenu"> gets it's stacking-position from <div id="appLayer">.

But the applayer always has the size of the body, so if I move it in front of the windows, they disappear.

Is there a way to show() the windows, so their HTML appears inside of <div id="appLayer">?

Gary Schlosberg
31 Oct 2013, 9:12 PM
Have you tried setting renderTo (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.window.Window-cfg-renderTo) to the <div> ID?

4 Nov 2013, 1:08 AM
Thank you, this worked. But the load mask of the window still is still above everything (probably because it gets rendered to the <body> instead of the <div> where the window is in.

-- edit --

I tried this:

Ext.override( 'Ext.LoadMask', { renderTo: 'appLayer' } );

But the masks are still on top. Probably because the way their z-index is calculated.
The z-index of the menu is 999999.