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

[Feature request] Add offset parameter to AnchorScroll #985

Closed
CoenWarmer opened this issue Mar 31, 2014 · 2 comments
Closed

[Feature request] Add offset parameter to AnchorScroll #985

CoenWarmer opened this issue Mar 31, 2014 · 2 comments

Comments

@CoenWarmer
Copy link

It would be really helpful if the anchorScroll function would allow a variable that sets an offset from an element. For instance:

$location.hash(id); $ionicScrollDelegate.anchorScroll('40');

This would make ion-scroll scroll 40 pixels past the position of the id element.

Could also be negative, or maybe even two variables, one for x, one for y?

@ajoslin
Copy link
Contributor

ajoslin commented Mar 31, 2014

Added via scrollBy in #987!

@ajoslin ajoslin closed this as completed Mar 31, 2014
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants