Automatic scrollToRememberedPosition doesn't work in beta.13


#1

Hello,

I have following example (welcome Pats again :smile: ) nightly build with AngularJS v1.3.2 that demonstrates ion-infinite-scroll with details view and automatic scrollToRememberedPosition: Demo.

As I know it works automatically, when I press on one of items and go to sub view, after pressing default ‘back’ button:
$ionicGoBack($event) it scrolls me to previous place in list.

When I change to beta.13 scrollToRememberedPosition doesn’t work.

This is a Demo 2 I play with.

Please help,


#2

ok, I found solution:

I wrapped ion-list with:

<ion-scroll delegate-handle="myScroll" direction="y" style="width: 500px; height: 500px" id="fessy">

and added:

 var delegate = $ionicScrollDelegate.$getByHandle('myScroll');
 delegate.rememberScrollPosition('fessy');
 delegate.scrollToRememberedPosition();  

Working DEMO