Thank you Christophe!! That appears to be exactly what I need.

Daniel


-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Christophe
Porteneuve
Sent: Wednesday, April 04, 2007 2:27 AM
To: [email protected]
Subject: [Rails-spinoffs] Re: Is Element in Viewing Range


Daniel Eben Elmore a écrit :
> How could I tell if an element is visible? Not visible as in the css
display
> property, but visible in the browser's clipping area. So if I had a long
> list of columns and wanted to know if the user has to scroll horizontally
to
> see the last one.

I'm *so* not sure, but have a look at Position.page + the window's
innerWidth (or equivalent) property.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to