-
15 Oct 2006 12:05 PM #1
modal panel not really modal
modal panel not really modal
Hi everyone,
I'm having some trouble with my modal Panel created as follows:
The panel show up, but only the empty parts of the window are covered by the modal layer (ie I can still click elements). What could be the cause ?Code:YAHOO.options.panel = new YAHOO.widget.Panel("options", { width:"30em", height:"30em", zIndex:10001, fixedcenter: true, constraintoviewport: true, underlay:"shadow", close:true, visible:false, draggable:false, modal:true } );
Thanks in advance
edit : Just thought about that : my page is made up of elements positioned with absolute coords, might it be the reason ?
-
15 Oct 2006 12:22 PM #2
I made these two changes to container.css:
The problem is the mask is z-index:0 or 1 and passing a z-index to the dialog doesn't change the mask z-index. I set them both to a ridiculous z-index in one shot in the css file and never worry about it again.Code:.mask { z-index:10000; } .panel { z-index:10001; }
-
15 Oct 2006 12:28 PM #3
Unfortunately it doesn't do the job for me
I couldn't find a mask class in the css so I created it my self to change the z-index, without any success...
-
15 Oct 2006 12:47 PM #4
.mask is the 7th selector in container.css.
-
15 Oct 2006 12:58 PM #5
I actually found it on my own (Aptana wasn't showing it in the outline for whatever reason) but anyway, it does not change anything...
I'll try to change these absolute positioned elements tommorow, and i'll see if that's not the cause. I don't know I have the feeling only the parts not covered by one of these elements are affected by the mask, but for now, time to sleep
Thanks for your help
-
15 Oct 2006 1:01 PM #6
The other thing is making sure your panel is rendered into the body element and not a child element.
-
15 Oct 2006 1:13 PM #7
That's how I've organised the code :
Seems ok to me :/Code:<body> <div>Some content</div> </div id="thepanel>the panel</div </body>
-
15 Oct 2006 3:18 PM #8
Can you put up a link? I'd be happy to take a look at it.
-
16 Oct 2006 1:30 AM #9
I'll put that up on a live server as soon as possible, thanks for the offer

-
16 Oct 2006 2:32 AM #10
http://www.ecocitoyen-inprogress.inf...piece=Chambree
Click on the "objet" button, you'll see the panel
Similar Threads
-
Modal panel behind mask in yui-ext layout
By Tym in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 21 Nov 2008, 7:11 AM -
Div Modal
By cebola in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 14 Mar 2007, 5:08 AM -
[1.0a2 Rev 5] MessageBox opens not modal (modal: true)
By Arikon in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 27 Feb 2007, 9:52 PM -
Dialog modal
By pomata in forum Ext 1.x: Help & DiscussionReplies: 0Last Post: 1 Dec 2006, 8:50 AM -
tabs and modal
By jbowman in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 11 Oct 2006, 6:54 PM


Reply With Quote