Ok.... struggling to describe this one. I''m using the ''auto_complete_field'' helper to implement auto-completion in one of my views. It all worked a treat except for one thing. When arrowing up through the list of available options the entire content of the browser window scrolled up to bring the focused list item to the top of the window. Stepping through the scriptaculous code in Firebug, I found that the markPrevious and markNext functions (controls.js [1]) differed in their call to scrollIntoView, i.e. markPrevious (line 212) this.getEntry(this.index).scrollIntoView(true); markNext (line 218) this.getEntry(this.index).scrollIntoView(false); Now, I''ve "fixed" the problem by changing markPrevious to pass false to scrollIntoView. I guess I''m curious as to why I''ve had to do this. Is the behaviour I was experiencing to be expected? And am I potentially breaking something else by changing this? Some background to help you pitch your answers: I''ve been working with Rails/Ruby for about 10 months or so, but I''m a total JavaScript n00b! [1] http://dev.rubyonrails.org/browser/spinoffs/scriptaculous/src/controls.js cheers, Ben -- http://teamaskins.net --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---