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

fix(uiView): Do NOT autoscroll when autoscroll attr is missing #932

Merged
merged 1 commit into from
Mar 7, 2014

Conversation

timkindberg
Copy link
Contributor

fix(uiView): Do NOT autoscroll when autoscroll attr is missing

Breaking Change: If you had ui-views that you wanted to autoscroll to on state change, you may now need to explicitly add autoscroll="true". Fixes #807

@timkindberg timkindberg restored the issue-807 branch March 6, 2014 03:55
@timkindberg
Copy link
Contributor Author

Anyone want to review before I merge this?

@nateabele
Copy link
Contributor

Hey, sorry I didn't see this before I merged the other one. If you wanna update and rebase, I'll push the big green button for ya (or feel free to do it yourself). Ping me if you need help squashing commits.

@meenie
Copy link
Contributor

meenie commented Mar 6, 2014

👍 - I've been putting autoscroll="false" on all the things haha.

BTW, when you rebase, you are going to be some mega conflicts. That code was moved to the renderer.enter() callback param.

elem.append($compile('<div><ui-view></ui-view></div>')(scope));
$state.transitionTo(aState);
$q.flush();
if ($animate) $animate.flush();
expect($uiViewScroll).toHaveBeenCalledWith(elem.find('span').parent());
expect($uiViewScroll).not.toHaveBeenCalledWith(elem.find('span').parent());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just do expect($uiViewScroll).not.toHaveBeenCalled(); - no need to have the With(elem...) suffix.

Breaking Change: If you had ui-views that you wanted to autoscroll to on state change, you may now need to explicitly add `autoscroll="true"`. Fixes #807
timkindberg added a commit that referenced this pull request Mar 7, 2014
fix(uiView): Do NOT autoscroll when autoscroll attr is missing
@timkindberg timkindberg merged commit 6969e90 into master Mar 7, 2014
@timkindberg timkindberg deleted the issue-807 branch March 7, 2014 02:27
tlvince added a commit to tlvince/LMIS-Chrome that referenced this pull request Apr 1, 2014
tlvince added a commit to tlvince/LMIS-Chrome that referenced this pull request Apr 2, 2014
tlvince added a commit to tlvince/LMIS-Chrome that referenced this pull request Apr 3, 2014
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

Successfully merging this pull request may close these issues.

Default view scroll to off when autoscroll attr not specified
3 participants