Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raj Gupta on Feb 20, 2009 01:56
open dhtmlx forum
Maximizing dhtml windows

Hi,
I am using the enterprise suite of DHTMLx.
I am facing a weird problem while maximizing the window.

Problem is that when i create a window with height and width of screen.availWidth and screen.availHeight respectively and try to maximize the window(after window is shown, by clicking on the maximize tab on the top right side of the window), It throws me a javascript error.

My Scource Code:
var dhxWins = new dhtmlXWindows();
var stWid = screen.availWidth;
var stHeigh = screen.availHeight;
var win = dhxWins.createWindow('ITOD', 0, 0, stWid, stHeigh);
dhxWins.setSkin("dhx_blue");
win.setText("Incident by TOD");
dhxWins.window('ITOD').attachURL("IncidentByTODRpt.aspx");
dhxWins.window('ITOD').setModal(true);
dhxWins.window('ITOD').center();


Source code line break(in dhtmlwindows.js): p.style.height = win.h-s["header_height"] + "px";
Here, the height it tries to assign comes out to be negative, which i think is the problem.

Please help.

Thanks
Raj
Answer posted by Support on Feb 20, 2009 05:53