MOBILE-3191 UX: Don't fold away tab bar on short pages

main
Mark Johnson 2019-10-16 11:51:53 +01:00
parent eb19e61a2d
commit 8bfb7aa2a9
1 changed files with 1 additions and 1 deletions

View File

@ -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)';