MOBILE-3191 UX: Fix condition for keeping tabs visible on short pages
parent
69664c306c
commit
a0611a168d
|
@ -443,7 +443,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
||||||
this.calculateSlides();
|
this.calculateSlides();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + this.tabBarHeight) {
|
if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + (this.tabBarHeight - scroll)) {
|
||||||
// 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