I am using IE 11 , and it fails to render div dialog properly. All the dimensions viz. height, width, top, left give inappropriate results. The same is working fine for IE10.
The javascript code snippet is as follows:-
if (height > 0 && width > 0)
{
myDialog.height = height;
myDialog.width = width;
myDialog.top = (parseInt(document.body.clientHeight) - height) / 3;
myDialog.left = (parseInt(document.body.clientWidth) - width) / 2;
}
Here, myDialog is the div object I am talking about. why is this code snippet failing for IE11. Any help is appreciated.
widthandheightproperties fordivare obsoleted.