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

bug: Scroll is lost with collection-repeat #2865

Closed
mica16 opened this issue Jan 5, 2015 · 5 comments
Closed

bug: Scroll is lost with collection-repeat #2865

mica16 opened this issue Jan 5, 2015 · 5 comments

Comments

@mica16
Copy link

mica16 commented Jan 5, 2015

Type: bug

Platform: all

Let's suppose a tab presenting the view MyList: a list of item using a collection-repeat.
Click on an item, its detail is shown.
Now, go back and...cool the scroll has kept the position ! Everything Ok, since MyList is a cached view .

Now this scenario:
Click on an item, and in its detail page, open a modal (assuming there's button/link opening a modal).
Now, close the modal and go back to the list (through the back button too).
Wow! The scroll has lost the previous position, it's at the top ! => issue

It doesn't happen when using classic ng-repeat.

Here's a codepen: http://codepen.io/mica16/pen/EaygJa?editors=101

@tariq7
Copy link

tariq7 commented Jan 7, 2015

I have this exact same problem. Please fix! thank you

@fafk
Copy link

fafk commented Feb 11, 2015

It doesn't need to be a modal, even showing keyboard causes the same issue.

@felquis
Copy link

felquis commented Feb 11, 2015

This issue is fixed in the v1.0.0-beta.14-nightly-1011 or newer, was fixed from this issue #2935

@fafk I suggest you to try again with the last beta, if it still happen, create another issue with this and include a codepen and describe how to simulate the problem :D

@mica16
Copy link
Author

mica16 commented Feb 13, 2015

Indeed, tried it and I confirm it's fixed ! Well done ;)

@ajoslin
Copy link
Contributor

ajoslin commented Feb 24, 2015

Fixed .

@ajoslin ajoslin closed this as completed Feb 24, 2015
@ajoslin ajoslin removed the ready label Feb 24, 2015
@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

6 participants