Skip to content

Commit 7de95dc

Browse files
authored
Merge pull request #2512 from crazyserver/MOBILE-3464
MOBILE-3464 tabs: Disable hide tabs on big screens
2 parents cdb885f + 6785a6b commit 7de95dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/tabs/tabs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
477477
* @param scrollElement Scroll element to check scroll position.
478478
*/
479479
showHideTabs(scrollElement: any): void {
480+
// Do not scroll on very tall screens.
481+
if (window.innerHeight >= 1024) {
482+
return;
483+
}
484+
480485
if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) {
481486
// Wrong tab height, recalculate it.
482487
this.calculateTabBarHeight();

0 commit comments

Comments
 (0)