#1375 enhancement
Andrew Dupont

Consider enhancing Element.scrollTo to handle scrollable ancestor elements

Reported by Andrew Dupont | September 1st, 2012 @ 01:22 AM | in 1.8

Currently, Element.scrollTo will only scroll the window in an effort to make the element in question visible. This doesn't work if the element is in a non-visible portion of a scrollable element container (overflow: scroll).

Consider enhancing Element.scrollTo so that it either:

  1. scrolls both the window and any ancestor scrollable containers to ensure that the element is in view;
  2. accepts further options to specify its behavior (including which container to scroll).

Comments and changes to this ticket

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 ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages