Problems with reliably retrieving DOM element bounds in FireFox
Posted by: Rick Strahls WebLog,
on 30 May 2006 |
View original | Bookmarked: 0 time(s)
I've been banging my head against the wall again with FireFart (as Peter Bromberg lovingly calls FireFox) DOM programming.
What I'm doing is simple enough – I dynamically load up a <div> tag with HTML via innerHTML property and then need to draw a related control with the same dimensions.
var Panel = $(Context.ControlId);
Panel.innerHTML = Result;
// incorrect in FireFox, correct in IE
var Height = Panel.offsetHeight;
ShowShadow(Panel.id);
where...