Merge pull request #2512 from crazyserver/MOBILE-3464

MOBILE-3464 tabs: Disable hide tabs on big screens
main
Juan Leyva 2020-09-09 16:37:49 +02:00 committed by GitHub
commit 7de95dc66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -477,6 +477,11 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
* @param scrollElement Scroll element to check scroll position.
*/
showHideTabs(scrollElement: any): void {
// Do not scroll on very tall screens.
if (window.innerHeight >= 1024) {
return;
}
if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) {
// Wrong tab height, recalculate it.
this.calculateTabBarHeight();