From 8bfb7aa2a9d40befef9d26418f4b4b8ab0311410 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Wed, 16 Oct 2019 11:51:53 +0100 Subject: [PATCH] MOBILE-3191 UX: Don't fold away tab bar 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 f01de69d2..83c0ab146 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -447,7 +447,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe this.calculateSlides(); } - if (this.tabsShown) { + if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + this.tabBarHeight) { // Smooth translation. this.topTabsElement.style.transform = 'translateY(-' + scroll + 'px)'; this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)';