From ac9e87727a9bee2e4af2da593ea2fadfcc7cf11a Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 3 Jun 2021 09:16:40 +0200 Subject: [PATCH] MOBILE-3320 tabs: Try to fix tabs width after orientation change --- src/core/classes/tabs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/classes/tabs.ts b/src/core/classes/tabs.ts index bafe71197..7182606c4 100644 --- a/src/core/classes/tabs.ts +++ b/src/core/classes/tabs.ts @@ -247,7 +247,7 @@ export class CoreTabsBaseComponent implements OnInit, Aft await this.calculateMaxSlides(); - this.updateSlides(); + await this.updateSlides(); } /** @@ -624,7 +624,7 @@ export class CoreTabsBaseComponent implements OnInit, Aft protected windowResized(): void { setTimeout(() => { this.calculateSlides(); - }); + }, 200); } /**