WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
14693
document.width/height doesn't force layout
https://bugs.webkit.org/show_bug.cgi?id=14693
Summary
document.width/height doesn't force layout
Matt Lilek
Reported
Friday, July 20, 2007 7:22:41 PM UTC
The menu code at <
http://jjc.edu/
> calculates its positioning based on document.width, which is returning 0 by the time the position is calculated. However, this doesn't happen all the time. For me, if I load the URL in the address bar and hit enter, I can reproduce the bug consistently. If I click the reload button in the toolbar though, it works properly. The attached testcase shows the bug either way, but if I add in an alert(), it works OK after it is dismissed.
Attachments
Reduction
(927 bytes, text/html)
2007-07-20 11:23 PDT
,
Matt Lilek
no flags
Details
patch
(3.90 KB, patch)
2007-09-04 21:45 PDT
,
Sam Weinig
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Matt Lilek
Comment 1
Friday, July 20, 2007 7:23:02 PM UTC
Created
attachment 15604
[details]
Reduction
Matt Lilek
Comment 2
Saturday, July 21, 2007 1:37:41 AM UTC
Should mention this happens with Safari 2 up to ToT.
Dave Hyatt
Comment 3
Saturday, July 21, 2007 1:42:39 AM UTC
Sounds easy to fix. Just need to add an updateLayoutIgnoringPendingStylesheets.
mitz
Comment 4
Tuesday, September 4, 2007 7:28:35 AM UTC
***
Bug 15137
has been marked as a duplicate of this bug. ***
Sam Weinig
Comment 5
Wednesday, September 5, 2007 5:45:25 AM UTC
Created
attachment 16202
[details]
patch
Maciej Stachowiak
Comment 6
Friday, September 14, 2007 3:38:46 AM UTC
Comment on
attachment 16202
[details]
patch r=me
Mark Rowe (bdash)
Comment 7
Friday, September 14, 2007 3:40:45 AM UTC
<
rdar://problem/5481392
>
Sam Weinig
Comment 8
Monday, September 17, 2007 1:17:27 AM UTC
Landed in
r25591
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug