fixed ui issue in ios

enad-Q1
umasoodch 5 years ago
parent c59c5133b0
commit 6ecc9d27e4

@ -107,10 +107,8 @@ export class HomePage implements OnInit {
slidesPerView: 3.5, slidesPerView: 3.5,
spaceBetween: 10 spaceBetween: 10
}; };
public slideOptsTwo = {
slidesPerView: 3.2, public slideOptsTwo = {};
spaceBetween: 10
};
public runTimer = false; public runTimer = false;
public hasStarted = false; public hasStarted = false;
public hasFinished = false; public hasFinished = false;
@ -190,9 +188,17 @@ export class HomePage implements OnInit {
} }
} }
public slideSettings() {
const width = this.platform.width();
console.log('enad testing: ' + width);
this.slideOptsTwo = {
slidesPerView: width > 320 ? 3.2 : 2.5,
spaceBetween: 10
};
}
ionViewWillEnter() { ionViewWillEnter() {
this.common.startLoading(); this.common.startLoading();
this.slideSettings();
this.common.sharedService.setSharedData(true, 'loadWorkList'); this.common.sharedService.setSharedData(true, 'loadWorkList');
this.remainingTime = 0; this.remainingTime = 0;
this.displayTime = '00:00:00'; this.displayTime = '00:00:00';

Loading…
Cancel
Save