Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngInclude & ngView): Conditionally autoscroll after animation #4801

Closed
wants to merge 3 commits into from

Conversation

jeffbcross
Copy link
Contributor

We need to wait until animations have added the content to the document before
trying to autoscroll to anchors that may have been inserted.

@IgorMinar
Copy link
Contributor

please fix all the small issues I noted and merge this into master

petebacondarwin and others added 3 commits November 5, 2013 23:48
We need to wait until animations have added the content to the document before
trying to `autoscroll` to anchors that may have been inserted.

Fixes angular#4723
@ghost ghost assigned jeffbcross Nov 6, 2013
@jeffbcross
Copy link
Contributor Author

Merged

@jeffbcross jeffbcross closed this Nov 6, 2013
@lobodpav
Copy link

Just googled this issue when searching for a solution of my problem.

I have a site where user is navigating via top menu and pages are injected via ngView.
Having animations and long pages and autoscroll on ngView causes problems when user scrolls down on one page and then goes to another. The second page is transitioned including remembered scroll and then jumps to the top.

Is there a way to make angular scroll the content to the top prior animating it?

@Narretz
Copy link
Contributor

Narretz commented Mar 17, 2014

@lobodpav You should probably open a new issue with the problem description and add a reproduction (e.g. plunker) so the community can determine if it is a bug or not.

@lobodpav
Copy link

Will do. Thx.

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

Successfully merging this pull request may close these issues.

5 participants