MOBILE-3464 tabs: Disable hide tabs on big screens

main
Pau Ferrer Ocaña 2020-09-04 17:25:43 +02:00
parent bdbba2885e
commit 6785a6b842
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();