Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery document height reported incorrectly by IE (on XP) first time

I'm having a "first time" problem with IE, which reports a different value for $(document).height(); when the page first loads versus subsequent queries. The difference is 17 pixels regardless of the opening size of the window -- on document ready, the height reported is 17 pixels larger than is subsequently reported. I wonder if this is an artifact of some aspect of my page (some margins or paddings somewhere), but so far can't account for 17 pixels.

like image 602
Zhami Avatar asked Mar 03 '26 01:03

Zhami


1 Answers

With seeing the page: Maybe after "document ready" something is happening like other DOM manipulation, or simply images finish loading whose size require a re-flow.

like image 111
RoToRa Avatar answered Mar 05 '26 13:03

RoToRa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!