Virtual Scrolling List : not ordinary behaviour

unspected behaviour
i am using the VirtualScroll from the offical documentation.


my list contains most than 4 elements. but it will show up only 4 elements.
this is my code

<ion-col>
  <ion-grid>
    <ion-list [virtualScroll]="person">
      <ion-item *virtualItem="let p">
        {{p.name}}
      </ion-item>
    </ion-list>
  </ion-grid>
</ion-col>

this is the result :
image

Standard List:
image
what i can do to improve my Virtual Scrolling List

The syntaxis is

<ion-grid>
  <ion-col>
  </ion-col>
</ion-grid>

not

<ion-col>
  <ion-grid>
  </ion-grid>
</ion-col>

1 Like

the same. nothing change. only 4 elmts will display

Checking the documentation and testing we can realize that a list does not work inside a grid, but if a grid within a list.

thank you for your reply. that’s solve the problem
obviously i need to spend more time on reading the documentation

@HamdySdiri You’re welcome, that’s why we are here.