You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chaviv Weinberg <ch...@gmail.com> on 2009/07/03 12:08:35 UTC

problem with fixed css style for modal window

Hello,

We are trying to get the modal window to stay fixed in the center of
the screen. The problem we are running into are the lines

496: var left = (width / 2) - (modalWidth / 2) + scLeft;
497: var top = (height / 2) - (modalHeight / 2) + scTop;

They are adding the scroll position to the left and top. This is a
problem in ie 7 and 8, because the modalwindow is rendered outside of
the browser viewport. Is there any sollution for this? The css that
sets the fixed is:

div.wicket-modal {
       position: fixed !Important;
       _position: absolute;
       z-index: 20001;
       visibility: hidden;
}

The position type is defaulted to "absolute" by modal.js. So the count
cannot be ignored.

Thanks in advance.


Chaviv Weinberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org