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’);

}







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?

Try to add the following style:

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