#268 new
Anton

Nagivating in autocomplete field via keyboard scrolls the whole page

Reported by Anton | January 14th, 2010 @ 03:17 PM

http://stackoverflow.com/questions/1109347/scroll-issues-with-scrip...
The suggested workaround fixes the problem but creates another one -- when there are many suggested items, scrolling them via keyboard isn't possible.

Comments and changes to this ticket

  • Anton

    Anton January 14th, 2010 @ 03:56 PM

    My latest workaround:

    markPrevious: function() {

    if(this.index > 0) this.index--;
      else this.index = this.entryCount-1;
    
    var ulEl = jQuery(this.update).find('ul:first').get(0);
    
    if (ulEl.clientHeight < ulEl.scrollHeight) {
        this.getEntry(this.index).scrollIntoView(false);
    }
    
    
    
    
    },
    markNext: function() {
    if(this.index < this.entryCount-1) this.index++;
      else this.index = 0;
    
    var ulEl = jQuery(this.update).find('ul:first').get(0);
    
    if (ulEl.clientHeight < ulEl.scrollHeight) {
        this.getEntry(this.index).scrollIntoView(false);
    }
    
    
    
    
    },
  • Juan Pablo Hurtado

    Juan Pablo Hurtado March 4th, 2010 @ 05:33 PM

    My version: script.aculo.us controls.js v1.8.3

    I comment this lines and was fixed.

    markPrevious: function() {...
    //this.getEntry(this.index).scrollIntoView(true);

    markNext: function() {...
    //this.getEntry(this.index).scrollIntoView(false);

    But in my case I never show more than 10 results and never will use scrollbars in the list

  • aaravydv

    aaravydv January 2nd, 2019 @ 10:16 AM

    Id you try click on https://windowsclassroom.com/enable-remote-desktop-windows-10-use how it's works? Is works on old desktop? And what it's process?????

  • hsc result

    hsc result April 2nd, 2019 @ 04:13 PM

    You just have altogether larger than companions' needs. in light-weight of produce these validatory, top notch, illuminating and what is more cool endeavoring to instigate presents this promise to Kate.
    Fathers Day images 2019 Happy Fathers Day Images

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
<br/><b>Source available from github</b>
The Git repository resides at:
<a href="http://github.com/madrobby/scriptaculous">http://github.com/madrobby/scriptaculous</a>
<br/>Check out the current development trunk with:
<code>git clone git://github.com/madrobby/scriptaculous.git</code>
<br/>As <b>script.aculo.us 1.xx is feature-frozen</b>, this development trunk is for <b>bugfixes only</b>.
<br/>New development should happen only for
<b>script.aculo.us 2</b>.
<br/><b>Creating a bug report</b>
When creating a bug report, be sure to include as much relevant information as possible. Post a an example that shows off the problem. Preferably, <b>alter the unit tests</b> and show through either changed or added tests how the expected behavior is not occuring.

People watching this ticket

Pages