On 06/09/06, Sam Collett <[EMAIL PROTECTED]> wrote:
> On 06/09/06, Dylan Verheul <[EMAIL PROTECTED]> wrote:
> > works like a charm :-)
> > thanks! I'll update the official version soon.
> >
>
> As I am not sure if it will cause problems in other browsers (it is
> not a W3C DOM function), there should probably be a check:
>
> if(lis[active].scrollIntoView) lis[active].scrollIntoView(false);
>
Correction (causes error if no matches were found and a cursor key is pressed):

if(lis[active] && lis[active].scrollIntoView) lis[active].scrollIntoView(false);

> > On 9/6/06, Sam Collett <[EMAIL PROTECTED]> wrote:
> > > On 06/09/06, Dylan Verheul <[EMAIL PROTECTED]> wrote:
> > > > I've been thinking about an elegant way to deal with long resul lists,
> > > > but I havent gotten my head arouns a workable solution that I can
> > > > actually realize myself. I'm not that experience in je
> > > > js/positioning/scrolling department.
> > > >
> > > > I think if you max-height the results UL you'll get scroling from the
> > > > browser, but I haven't really tested it.
> > > >
> > >
> > > If you put this at the end of moveSelect it scrolls into view when an
> > > item is selected.
> > >
> > > lis[active].scrollIntoView(false);
> > >
> > > Tested it in IE and Firefox.
> > >
> > > _______________________________________________
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > _______________________________________________
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to