View Single Post
Old 02-25-2013, 09:24 PM   PM User | #1
sbhmf
New Coder

 
Join Date: Jan 2013
Location: Sunnyvale, CA
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
sbhmf is an unknown quantity at this point
window offset, not doc offset

the GUI is horizontally-divided into 4 vertical sections, each of which loads its own document, similar to a dashboard. A function call from one of the center documents' controls triggers a layer to cover the screen (for modal purposes) and places a control in its center where the user interacts until closed.

Problem is that css properties position, offset, top and left are all relative to the document, and not to the window. Result is that the modal covers only the one vertical section and not the entire screen.

I have attempted to get around the issue by adding $(verticalDocNode).offset() to the mathematical equation, but an alert reveals that instead of a coordinates it returns [object Object].

I should note here that the page does not contain any iframes.

How can I best implement a full-screen modal?

Last edited by sbhmf; 02-25-2013 at 09:45 PM.. Reason: Appended note that page does not contain iframes.
sbhmf is offline   Reply With Quote