From 6785a6b842d3cabd96a22a2b3ebf6e759471f069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 4 Sep 2020 17:25:43 +0200 Subject: [PATCH] MOBILE-3464 tabs: Disable hide tabs on big screens --- src/components/tabs/tabs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index 65cdb3bf2..af29e8833 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -477,6 +477,11 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe * @param scrollElement Scroll element to check scroll position. */ showHideTabs(scrollElement: any): void { + // Do not scroll on very tall screens. + if (window.innerHeight >= 1024) { + return; + } + if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) { // Wrong tab height, recalculate it. this.calculateTabBarHeight();