Merge pull request #2141 from marxjohnson/MOBILE-3191_integration
MOBILE-3191 UX: Don't fold away tab bar on short pagesmain
commit
c4bda7314e
|
@ -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