posted 16 years ago
Actually I am calling the same function in my onload script as is attached to window.onresize. My point is that Firefox does not resize when executed during page load. It sets the DIV height correctly (confirmed) but does not redraw the element until an onresize event is fired. I might add that I have tried setting the TD height as well to no avail. Once a resize occurs, the page elements are redrawn and appear as they should. I have to set the DIV height for Opera as well and, once the DIV height is set, the affected elements are redrawn and the page appears as it should.
This is only a problem in Firefox (2.0.0.11) and only on page load. Curiously, if I use the Web Developer tools to attempt to outline the TD/DIV elements in the page, an onresize event is apparently triggered and again Firefox renders the page as it should.
So my question is again is how to force a redraw? Right now, I'm thinking that I should just change some other arbitrary element in an attempt to trigger a redraw.