From a93ccdebc4b03b803f2bc9884f57cb54144ea8a6 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 23 Aug 2021 14:56:04 +0300 Subject: [PATCH] fixed ios issues --- Mohem/src/app/home/home.page.html | 4 ++-- Mohem/src/app/home/home.page.ts | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Mohem/src/app/home/home.page.html b/Mohem/src/app/home/home.page.html index 2c746a9d..966f2f73 100644 --- a/Mohem/src/app/home/home.page.html +++ b/Mohem/src/app/home/home.page.html @@ -7,7 +7,7 @@ - + - + {{'general,other-services' | translate}} diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index a6dfbe2f..9f0100b5 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -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';