Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49167

Double scrolling with collection-repeat

$
0
0

@codiqa100039729 wrote:

Hi guys, how is it going?

I am using collection repeat to display a series of cards, with dividers separating them by day. The problem I'm having is that, when my list have few items and cover less than full screen, the screen is scrolling untill all items disappear...

Here is my markup

  <ion-content class="content-pad" overflow-scroll = true>
      <div collection-repeat="line in vm.lines | groupByDate"
        item-height="(line.isDivider === true) ? '40px' : '16%'"
        class="lines-collection">
        <div ng-if="line.isDivider===true" class="line-divider">
            <span>{{line.date | curtainDate}}</span>
        </div>
        <div ng-if="line.isDivider !== true" class="card-line">
          <!--item-->
        </div>
      </div>
  </ion-content>

Do you guys know what may be causing this?

Thank you

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49167

Trending Articles



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