Skip to content

Commit dc5f813

Browse files
authored
Merge pull request #2222 from marxjohnson/MOBILE-3191_integration
MOBILE-3191 UX: Fix condition for keeping tabs visible on short pages
2 parents abb1212 + a0611a1 commit dc5f813

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)