I'm also having problems with setting the size of a ModalWindow. It seems the
only way I can affect the height of the window is by setting the initial
height as px which is not an optimal solution because my users have
different screen resolutions.

Here's the code:
                infoModal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
                infoModal.setCookieName(null);
                infoModal.setResizable(false);
                infoModal.setInitialHeight(50);
                infoModal.setInitialWidth(50);
                infoModal.setHeightUnit("%");
                infoModal.setWidthUnit("%");
                infoModal.show(target);

I've tried using setUserInitialHeight(true) and setUserInitialHeight(false),
both have the same results.

Now, using a screen resolution of 1680x1050 this window comes up as:

<div style="top: 73.5px; left: 420px; width: 50%; position: absolute;
visibility: visible;" id="_wicket_window_0" class="wicket-modal"></div>

The width, it would seem, is set to "50%" as you'd expect but the height is
not. The dimensions of the window confirm this, 840x665


Using a resolution of 1024x768 the window comes up as:

<div id="_wicket_window_0" class="wicket-modal" style="top: -101.5px; left:
256px; width: 50%; position: absolute; visibility: visible;">

The dimensions this time are 512x733.

Any help on this would be greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/ModalWindow-tp17672576p25491333.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to