Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll item into view #643

Closed
wattsbn opened this issue Aug 20, 2013 · 1 comment
Closed

Scroll item into view #643

wattsbn opened this issue Aug 20, 2013 · 1 comment

Comments

@wattsbn
Copy link
Contributor

wattsbn commented Aug 20, 2013

It would be nice to have a function (scrollIntoView for example) to ensure that an item is visible. I am aware of #183 and #571, however both always scroll the element to the top of the viewport. (http://plnkr.co/edit/oyIlX9)

I would like to do the minimum amount of scrolling to make the element visible.
So if the element is already visible, then do nothing.
If the element is below the viewport, then scroll until its the last element in the viewport.

@cguillemette
Copy link

I agree with Watts. This is much needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants