fixed ios issues

MOHEMM-SFH-COLORS
umasoodch 4 years ago
parent 66d193815a
commit a93ccdebc4

@ -7,7 +7,7 @@
<ion-content class="main-dashboard-container">
<ion-grid class="main-container contentBg">
<ion-row class="slideFullWidth">
<ion-row *ngIf="showStaticServices" class="slideFullWidth">
<ion-slides [options]="slideOptsOne" class="padding-slide slide">
<ion-slide *ngFor="let button of statsButtons; let i=index;">
<app-stats-button
@ -58,7 +58,7 @@
</ion-row>
</ion-row>
<ion-row>
<ion-row *ngIf="showStaticServices">
<ion-col size="12">
<ion-label> {{'general,other-services' | translate}} </ion-label>
</ion-col>

@ -103,10 +103,7 @@ export class HomePage implements OnInit {
}
];
public slideOptsOne = {
slidesPerView: 3.5,
spaceBetween: 10
};
public slideOptsOne = {};
public slideOptsTwo = {};
public runTimer = false;
@ -131,6 +128,7 @@ export class HomePage implements OnInit {
public vacationRuleIcon: string;
direction: string;
public isPostNoLoad = true;
public showStaticServices = false;
constructor(
public ts: TranslatorService,
@ -188,17 +186,21 @@ export class HomePage implements OnInit {
}
}
public slideSettings() {
public slideSettingsTwo() {
const width = this.platform.width();
console.log('enad testing: ' + width);
this.slideOptsOne = {
slidesPerView: width > 320 ? 3.5 : 3,
spaceBetween: 10
};
this.slideOptsTwo = {
slidesPerView: width > 320 ? 3.2 : 2.5,
spaceBetween: 10
spaceBetween: width > 320 ? 10 : 5
};
this.showStaticServices = true;
}
ionViewWillEnter() {
this.common.startLoading();
this.slideSettings();
this.slideSettingsTwo();
this.common.sharedService.setSharedData(true, 'loadWorkList');
this.remainingTime = 0;
this.displayTime = '00:00:00';

Loading…
Cancel
Save