From a0611a168d2b6fb17e4a5a3997230389a38dc6a2 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Mon, 9 Dec 2019 09:28:56 +0000 Subject: [PATCH] MOBILE-3191 UX: Fix condition for keeping tabs visible on short pages --- src/components/tabs/tabs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index 93e6c5016..578367399 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -443,7 +443,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe this.calculateSlides(); } - if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + this.tabBarHeight) { + if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + (this.tabBarHeight - scroll)) { // Smooth translation. this.topTabsElement.style.transform = 'translateY(-' + scroll + 'px)'; this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)';