Yes, it can be resized.
Do something like this:

        public void show(AjaxRequestTarget target, ...) {
                // ...
                super.show(target);
                // ...
                int height = YOUR_COMPUTED_HEIGHT;
                int width = YOUR_COMPUTED_WIDTH;
                target.appendJavascript(""//
                                + "var thisWindow = Wicket.Window.get();\n"//
                                + "if (thisWindow) {\n"//
                                + "thisWindow.window.style.width = \"" + width 
+ "em\";\n"//
                                + "thisWindow.content.style.height = \"" + 
height + "em\";\n"//
                                + "thisWindow.center();\n"//
                                + "}"//
                );
        }

Stefan



      

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

Reply via email to