MOBILE-3191 UX: Don't fold away tab bar on short pages
parent
eb19e61a2d
commit
8bfb7aa2a9
|
@ -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)';
|
||||||
|
|
Loading…
Reference in New Issue