From 6ecc9d27e45565af3851ba4a7285285bcd2e3158 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 23 Aug 2021 14:21:52 +0300 Subject: [PATCH] fixed ui issue in ios --- Mohem/src/app/home/home.page.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index b3e518ee..a6dfbe2f 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -107,10 +107,8 @@ export class HomePage implements OnInit { slidesPerView: 3.5, spaceBetween: 10 }; - public slideOptsTwo = { - slidesPerView: 3.2, - spaceBetween: 10 - }; + + public slideOptsTwo = {}; public runTimer = false; public hasStarted = 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() { this.common.startLoading(); + this.slideSettings(); this.common.sharedService.setSharedData(true, 'loadWorkList'); this.remainingTime = 0; this.displayTime = '00:00:00';