Skip to content

Commit a0611a1

Browse files
author
Mark Johnson
committed
MOBILE-3191 UX: Fix condition for keeping tabs visible on short pages
1 parent 69664c3 commit a0611a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tabs/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
443443
this.calculateSlides();
444444
}
445445

446-
if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + this.tabBarHeight) {
446+
if (this.tabsShown && scrollElement.scrollHeight > scrollElement.clientHeight + (this.tabBarHeight - scroll)) {
447447
// Smooth translation.
448448
this.topTabsElement.style.transform = 'translateY(-' + scroll + 'px)';
449449
this.originalTabsContainer.style.transform = 'translateY(-' + scroll + 'px)';

0 commit comments

Comments
 (0)