Bug 19283 - Checking offsetHeight of an element in javascript affects overall height of the page?
Summary: Checking offsetHeight of an element in javascript affects overall height of t...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://m4cb0y.homeip.net/allegory/ima...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 20:29 PDT by Michael
Modified: 2008-06-02 21:36 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2008-05-27 20:29:51 PDT
I'm not exactly sure what this bug is, but on the latest nightly build (#34153) the footer on my site jumps up when using the lightbox gallery on my site. I've pinpointed this to line 355 in the file lytebox.js: 'document.getElementById('caption').offsetHeight'. If I comment this out it doesn't happen anymore. This only happens with the new build of WebKit; Firefox, Opera, IE, and Safari 3.1.1 render it fine.
Comment 1 Michael 2008-05-27 20:35:36 PDT
Screenshot: http://img137.imageshack.us/img137/2633/footerbugvp5.png (the yellow footer should be all the way at the bottom)
Comment 2 Michael 2008-05-27 20:37:20 PDT
Oops, here's the URL: http://m4cb0y.homeip.net/allegory/gallery1.php
Comment 3 Michael 2008-05-27 20:38:06 PDT
http://m4cb0y.homeip.net/allegory/images/gallery1.php *

I wonder how many more mistakes I can make.
Comment 4 mitz 2008-05-27 22:01:25 PDT
I think this is related to the following behavior which is reproducible on the URL: if you resize the window along the vertical axis alone, being careful not to change its width, then the footer does not move down along with the bottom of the window.
Comment 5 Michael 2008-05-28 14:23:22 PDT
Here is where I got the code for my footer, what you described seems to happen there as well: http://www.themaninblue.com/experiment/footerStickAlt/good_example_short.htm

It also happens on most other "sticky" CSS footers I can find: http://ryanfait.com/sticky-footer/ http://www.lwis.net/profile/CSS/sticky-footer.html
Comment 6 Michael 2008-06-02 21:36:17 PDT
The offsetHeight problem seems to be fixed now, but there's still the same issue with those footers resizing.