I have this markup…
<ion-scroll ng-style="{height: containerHeight}">
<ion-list class="list-alternate" ng-style="{height: containerHeight}">
<ion-item collection-repeat="subject in subjectsToDisplay | orderBy:selectedSort.predicate:selectedSort.reverse == 'true' | filter:{displayValue: search.text}"
ng-click="selectSubject(subject)"
class="item-icon-right">
<div class="row list-row">
<div class="col overflow-col">
{{subject.displayValue}}
</div>
<div class="col overflow-col">
{{subject.dateDisplay.prettyDate}}
</div>
</div>
<i class="icon ion-ios-arrow-forward"></i>
<div class="pending-label" ng-if="subject.hasPending"></div>
</ion-item>
</ion-list>
<div class="card" ng-if="$root.network.isOffline">
<div class="item item-text-wrap">
<div class="pending-example"></div>
<p class="pending-example-text">
Some text here.
</p>
</div>
</div>
</ion-scroll>
When the ng-if
for the card at the bottom is true
, it first displays overlaying the collection-repeat
list items. It never used to do this!
When you scroll it off the screen and then scroll back again it is gone and only appears underneath the list where it is supposed to
Here are some screenshots demonstrating this…
Any ideas?