positioning a window using percentages

Hi is there a way to position a window relatively to the body in percentage?





body { margin:0; padding:0; height:100%;width:100%;}





dhxWins = new dhtmlXWindows();

dhxWins.setImagePath("//XmlWindows");

w1 = dhxWins.createWindow(“w1”, 50, 50, 100, 100);

w1.setText(“dhtmlxWindow”);

w1.setDimension(“90%”,“40%”);

w1.setPosition(“15%”,“15%”);





setting the dimensions relatively works well this way, but positioning it the same way causes an error.

I’m trying this in the new 2.5 beta 2.



kind regards,

Arno.


Hello,


>> is there a way to position a window relatively to the body in percentage?


unfortunately, no. Sizes should be in pixels.