MOBILE-3320 ios: Fix PTR in tabs-outlet pages in iOS

Apparently iOS gets the outer ion-content to scroll when there's more than one, so we had to remove the ion-contents outside of core-tabs-outlet
main
Dani Palou 2021-05-20 13:39:06 +02:00
parent 3adf95a348
commit 096beec288
2 changed files with 9 additions and 13 deletions

View File

@ -10,6 +10,4 @@
<ion-buttons slot="end"></ion-buttons> <ion-buttons slot="end"></ion-buttons>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content> <core-tabs-outlet [tabs]="tabs" [hideUntil]="loaded" (ionChange)="tabSelected()"></core-tabs-outlet>
<core-tabs-outlet [tabs]="tabs" [hideUntil]="loaded" (ionChange)="tabSelected()"></core-tabs-outlet>
</ion-content>

View File

@ -12,13 +12,11 @@
</ion-buttons> </ion-buttons>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content> <core-loading [hideUntil]="loaded">
<core-loading [hideUntil]="loaded">
<core-tabs-outlet *ngIf="tabs.length > 0" [selectedIndex]="selectedTab" [hideUntil]="loaded" [tabs]="tabs"
(ionChange)="tabSelected()">
</core-tabs-outlet>
<ng-container *ngIf="tabs.length == 0"> <ng-container *ngIf="tabs.length == 0">
<core-empty-box icon="fas-home" [message]="'core.courses.nocourses' | translate"></core-empty-box> <core-empty-box icon="fas-home" [message]="'core.courses.nocourses' | translate"></core-empty-box>
</ng-container> </ng-container>
</core-loading> </core-loading>
</ion-content> <core-tabs-outlet *ngIf="tabs.length > 0" [selectedIndex]="selectedTab" [hideUntil]="loaded" [tabs]="tabs"
(ionChange)="tabSelected()">
</core-tabs-outlet>