I am using jQuery 1.3.2.
I am having problems getting the correct "height" in Internet Explorer 6. The height values โโare correct in all other browsers.
I also use the wreize jQuery plugin .
Every time the browser loads, I run a method that resizes divs, iframes, based on the size of the browser. (There is a good reason for this.)
The return value is $ ('body'). height (), in IE 6, it seems to add 10 pixels after every resize of the browser.
Does anyone else come across something like this?
var iframeH = 0, h = 0, groupH = 0, adjust = 0; var tableH = $("#" + gridId + "_DXHeaderTable").parent().height(); var pagerH = $(".dxgvPagerBottomPanel").height(); var groupHeight = $(".dxgvGroupPanel").height(); if (pagerH == null) pagerH = 0; if (groupHeight != null) groupH = groupHeight + pagerH; iframeH = $('body').height(); h = (iframeH - (tableH + pagerH + groupH)); $('#' + gridId + "Panel").css("height", (h + "px")); $("#" + gridId + "_DXMainTable").parent().css("height", (h + "px"));
This code is for setting the height of the DevExpress grid in the parent container. Ignore the fact that the code might be better. :)
Is there anything other than a โbodyโ that I could use to get the right size? I tried the window object ($ (window) .height ()), but that doesn't seem to help much.
Any thoughts appreciated!
source share