Merge pull request #2141 from marxjohnson/MOBILE-3191_integration

MOBILE-3191 UX: Don't fold away tab bar on short pages
main
Juan Leyva 2019-11-07 11:20:42 +01:00 committed by GitHub
commit c4bda7314e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(); this.calculateSlides();
} }
if (this.tabsShown) { if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + this.tabBarHeight) {
// Smooth translation. // Smooth translation.
this.topTabsElement.style.transform = 'translateY(-' + scroll + 'px)'; this.topTabsElement.style.transform = 'translateY(-' + scroll + 'px)';
this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)'; this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)';