Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Collection-repeat + dynamic item height + infinite-scroll = splash screen after scroll finished loading

$
0
0

@huangws wrote:

In my project I use collection-repeat + infinite-scroll,and dynamic set item-height, when infinite-scroll finished loading, then screen shake and splash, after that the scroll position before I scroll has changed, I can not see the same items after infinite-scroll finished loading.

    <ion-refresher
            pulling-text="pull to refresh..."
            on-refresh="doRefresh()">
    </ion-refresher>

    <ion-list>
            <ion-item  collection-repeat="s in stock.list"
                       item-width="'100%'"
                       item-height="getItemHeight(s)"
                       class="item-remove-animate item-button-right" type="item-text-wrap">
                <p>{{s.RowNo}}、{{s.cpgg_zmc}}</p>
                <p>{{s.locationname}}</p>
            </ion-item>
    </ion-list>

    <ion-infinite-scroll
            on-infinite="loadMoreStock()"
            ng-if="more" >
    </ion-infinite-scroll>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>