getWidthUnit() is not considered if the ModalWindow is resizable.

Nino Martinez wrote:
if getWidthUnit() arent final then override?

Emanuele Gesuato wrote:
Hi there,


In ModalWindow as defined in wicket-extension the width has a fixed length expressed in pixel (600px). I would like to have the width in "%" but the widthUnit is available only when the the component is not resizable.


In fact in ModalWindow.getWindowOpenJavascript() there is the following:

..
if (isResizable() == false)
{
buffer.append("settings.widthUnit=\"" + getWidthUnit() + "\";\n");
buffer.append("settings.heightUnit=\"" + getHeightUnit() + "\";\n");
}
...


How could i setting the width as "%" and mantain the resizability of the component ?

And why this behaviour is present ?


Thanks,
Emanuele


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



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




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

Reply via email to