Categories | Question details Back To List | ||
positioning a window using percentages Hi is there a way to position a window relatively to the body in percentage? <style> body { margin:0; padding:0; height:100%;width:100%;} </style> dhxWins = new dhtmlXWindows(); dhxWins.setImagePath("/<Computed Value>/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. Answer posted by Alex (support) on Aug 21, 2009 08:09 Hello, >> is there a way to position a window relatively to the body in percentage? unfortunately, no. Sizes should be in pixels. |