Dhtmlxwindow 100% height and width

Hi,

I’m trying to set my window with it’s layout inside to be 100% height and width.
This is my code:

dhxLayout = new dhtmlXLayoutObject(dhxWins.createWindow("w1", 0, 0, 400, 400), "2U");
        dhxLayout.setRTL(true);        
        dhxWins.window("w1").setText("label label");
        dhxWins.window("w1").setIcon("logo.bmp", "logo.bmp");
        dhxWins.window("w1").maximize();

I didn’t know how to set it to be 100% so i wrote 400 and then did the ‘maximize’ method.

My question is how can I set it to be 100% without writing the 400 and then doing ‘maximize’ ? can i set it to be from start 100% ?

Thank’s In Advance.

Hi,

createWindow doesn’t accept size in percent. Therefore, you need to calculate the necessary size and then pass it into createWindow method.