I have a div that holds image thumbnails. I have set it up so I can use the arrow keys on the keyboard to select or move between the images. 

The div can hold quite a few image thumbnails, so is set to overflow:auto so wil have scroll bars when there are to many images. 

What I want is for the selected image to always be in the viewable area, so when I use the down arrow for example to move between images and go below the viewable area I want the contents to scroll up so the selected image is visible (For you mac users, this is the way iPhoto works.) 

I looked at Element.scrollTo($(id)) but that seems to only scroll the page. 

Is there any way I can scroll the contents of my DIV. 

Thanks!

______________________________________________________________________

Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com 



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to