Closed
Description
ion-virtual-scroll not rendering data correctly on slow network.
I tested with 3g network on chrome and the ion-virtual-scroll items gets overlapped.
This bug is related to #18409 but I created this ticket as this bug appears always on slow network.
e.g
home.page.html looks like
<ion-header>
<ion-toolbar color="primary">
Lorem
</ion-toolbar>
</ion-header>
<ion-content *ngIf="(obser$| async) as testArray">
<ion-virtual-scroll [items]="testArray" approxItemHeight="320px">
<div *virtualItem="let item;">
<app-demo [personTile]="item" ></app-demo>
</div>
</ion-virtual-scroll>
</ion-content>
and home.page.ts
export class HomePage {
obser$: Obserable<Person[]>;
constructor(private service: LoremService) {
this.obser$ = this.service.getAllPersons();
}
and app.demo.ts
export class AppDemoComponent {
@Input()
personTile: Person;
and app.demo.html
<ion-card>
<ion-card-content>
<ion-grid>
<ion-row>
<ion-col>
{{personTile.name}}
</ion-col>
....
</ion-row>
</ion-grid>
</ion-card-content>
</ion-card>
Ionic version:
ionic cli : 5.4.15
"@angular/router": "~8.1.2",
"@capacitor/android": "^1.4.0",
"@capacitor/core": "1.4.0",
"@ionic-native/core": "^5.20.0",
"@ionic-native/splash-screen": "^5.20.0",
"@ionic-native/status-bar": "^5.20.0",
"@ionic/angular": "^4.11.10",