The problem can be 'fixed' by commenting a few lines in the controls.js file:

  markPrevious: function() {
    if(this.index > 0) this.index--
      else this.index = this.entryCount-1;
    //this.getEntry(this.index).scrollIntoView(false); //THIS LINE WAS COMMENTED
  },

  markNext: function() {
    if(this.index < this.entryCount-1) this.index++
      else this.index = 0;
    //this.getEntry(this.index).scrollIntoView(false); //THIS LINE WAS COMMENTED
  },

the scrollIntoView 'feature' was added to the autocompleter sometime
after v1.5.1.
Although, it seems to cause more problems in most cases than it's worth.
for example, I took Colin Mollenhour's code and modified it a little
to show that the above 'fix' solves the scrolling problem but breaks
functionality in another case, where the autocomplete_choices box does
not scroll accordingly.
here is the example:
http://www.brianpeiris.com/RubySpinoffTemp/
http://www.brianpeiris.com/RubySpinoffTemp/javascripts/controls.js

On 10/18/06, mobrien118 <[EMAIL PROTECTED]> wrote:
>
> Okay, It's not really fixed. Just a little better. Anyone else having
> any luck?
>
> This is really, really frustrating!!!!!!!!!!
>
>
> >
>


-- 
============================
Brian Peiris
Waterloo, Ontario, Canada
[EMAIL PROTECTED]
[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
-~----------~----~----~----~------~----~------~--~---

Reply via email to