Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Drew on Dec 02, 2008 17:13
open dhtmlx forum
dhtmlxLayout bug with IE7

I am running into a bug when trying to init the Layout and passing it % for the height and width in IE7 with the following:

function doOnLoad() {
myLayout = new dhtmlXLayoutObject(document.body, '2U', 'dhx_blue');
}

<body onload="doOnLoad()" style="width:100%; height:100%; margin: 0px; overflow: hidden;"></body>

IE7 throws an Invalid argument exception caused by the %
(if I changed it to fixed px widths it works fine in IE7)

error caused in dhtmlx.js on line 1492
;this.polyObj[a].childNodes[1].style.height = ver[a]-this.polyObj[a].childNodes[0]._h+ay+"px"}


Firefox initilizes fine with the % values)
I am using files located in dhtmlx_full.zip inside the dhtmlxSuite standard edition.

Am I doing something wrong? or is there a different way this init should be done for IE7 compatability?
Answer posted by Support on Dec 03, 2008 07:27
Try to add the following style:

html, body {
    width:100%;
    height:100%;
    margin: 0px;
    overflow: hidden;
}