ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: cached views doesn't maintain scroll position when

Open mkoosej opened this issue 11 years ago • 5 comments

Type: bug

Platform: all

On the beginning of the transition the scroll view of the parent is set to zero for some reason. The code was so simple I didn't create a codepen.

Parent View:

<ion-view view-title="HOME" hide-tabs>
<ion-content
            id="Dashboard"
            ng-controller="HomeController"
            has-header="true"
            overflow-scroll="true"
            >
Content

</ion-content>
</ion-view>

Child View:

<ion-view cache-view="false" view-title="{{view_title}}" hide-tabs>
    <ion-content scroll='false'>
    Some More Content
   </ion-content>
</ion-view>
```</span>

<span is-issue-template></span>

mkoosej avatar Mar 09 '15 09:03 mkoosej

Can you please provide a demo of this in a codepen

mhartington avatar Mar 13 '15 21:03 mhartington

I am having the same problem since updating from beta14 to 1.0.0-rc2. It is only noticeable when turning off transitions $ionicConfigProvider.views.transition('none'); The cached view jumps each time back from top to the previous scroll position.

tmaximini avatar Apr 08 '15 11:04 tmaximini

Sorry, it was not the fault of rc2 - in my case I had a directive re-rendered through an event which caused the jumpy. it works now.

tmaximini avatar Apr 09 '15 10:04 tmaximini

Greetings @mkoosej!

My sensors indicate a reply was requested, but we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Apr 12 '15 22:04 Ionitron

Greetings @mkoosej!

My sensors indicate a reply was requested, but we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Apr 12 '15 22:04 Ionitron