To add to this, I al have an error I (cannot consistently reproduce it,
unfortunately) about height being incorrectly calculated.
I have an "Admin Toolbar" added to the top of my CMS page, set for
"position:fixed" the document.body element is moved down by the height of
the toolbar.
Periodically, when the toolbar is added, the .height() function, as well as
the el[0].clientHeight property returns the FULL document height (rather
than something small like 30px), causing my program to move the
document.body element WAAAAAYYYY down the page.
If I set a timeout of like 100ms before measuring the height, it comes out
correctly.
But immediately following the creation:
$('<blabla>').appendTo(document.body) the height was calculated incorrectly.
It happened on Chrome, Safari Mac and Safari PC, but not on IE6/7, FF2/3 and
Opera, so I believe this is a bug in the underlying Webkit rendering engine.
I've hacked it for now, hard coding the height of the toolbar, as I don't
see a good workaround to what I believe is an underlying bug in the engine.
JK
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffrey Kretz
Sent: Wednesday, November 05, 2008 12:17 PM
To: [email protected]
Subject: [jquery-dev] Re: Window height in Safari is incorrect
I agree, and I have noticed this problem with other Webkit browsers, namely
Chrome and Safari for Windows.
I haven't gotten around to a suggested workaround for it yet, but I'll need
to solve it before I launch my project, which works fine on IE6/7 FF2/3 and
Opera, but not on Safari Mac/Win and Chrome.
JK
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Molendijk
Sent: Wednesday, November 05, 2008 11:34 AM
To: jQuery Development
Subject: [jquery-dev] Window height in Safari is incorrect
http://dev.jquery.com/ticket/3578
people agree?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---