Well, that is a good point.  Using the window width and height (which works
in the latest SVN) really is fine.

 

Perhaps then, the actual bug is the body height, which is currently showing
the viewport height (less scrollbar) when it should show the full height of
the body.

 

JK

 

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Sunday, October 21, 2007 6:00 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Getting window portal size in 1.2.1

 

Hi Jeffrey, 

 

I took a look at your page, and the only thing that is off for me (in FF
2.0.x Mac) is the $(document).width() and $('body').width() -- and that's
because of a bug in FF that had a hack in Dimensions to work around it,
which didn't go into core because it was too "hackish."

 

Shouldn't the $('body').width() and $('body').height() values be the same as
the $(document).width() and $(document).height() values? I guess I assumed
that $('body') and $(document) height and width should be equivalent,
measuring the entire document's dimensions (the part that is within the
<body> tags) including any part that is out of view -- as opposed to
$(window) dimensions, which should only return values for the viewable area.
But maybe I'm misunderstanding something?

 





 

--Karl

_________________

Karl Swedberg

www.englishrules.com

www.learningjquery.com

 





 

On Oct 21, 2007, at 1:02 PM, Jeffrey Kretz wrote:





Karl,

 

Thanks much, rebuilding jquery from the latest SVN solved the window
dimensions.  The document.body height is still off, however.  If you could
take a look at this page again:

 

 <http://www.scorpiontechnology.com/Cobalt/windowtest.htm>
http://www.scorpiontechnology.com/Cobalt/windowtest.htm

 

The  body width is correct - it matches the inside dimensions of the body
(not including the scrollbar).  However the body height still stays static
at the full document height.  Is this an easy fix?

 

JK

 

  _____  

From:  <mailto:jquery-en@googlegroups.com> jquery-en@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Karl Swedberg
Sent: Friday, October 19, 2007 6:50 PM
To:  <mailto:jquery-en@googlegroups.com> jquery-en@googlegroups.com
Subject: [jQuery] Re: Getting window portal size in 1.2.1

 

Hi Jeffrey,

 

This was a known issue. Something to do with the migration of that piece of
Dimensions into core. It's fixed in SVN now.






 

--Karl

_________________

Karl Swedberg

www.englishrules.com

www.learningjquery.com





 

Reply via email to