| 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 -~----------~----~----~----~------~----~------~--~--- |
- [Rails-spinoffs] Queuing Effect.toggle effec... Ben Darlow
- [Rails-spinoffs] Re: Queuing Effect.tog... Christophe Porteneuve aka TDD
- [Rails-spinoffs] Element.scrollTo($(id)... Alex Duffield
- [Rails-spinoffs] Re: Element.scroll... Ryan Gahl
- [Rails-spinoffs] Re: Element.sc... Brian Peiris
- [Rails-spinoffs] Re: Elemen... Alex Duffield
- [Rails-spinoffs] Re: E... Alex Duffield
- [Rails-spinoffs] Re: Queuing Effect.tog... BrianPeiris
- [Rails-spinoffs] Re: Queuing Effect... Ben Darlow
- [Rails-spinoffs] Re: Queuing Ef... Christophe Porteneuve aka TDD
