Merge pull request #2512 from crazyserver/MOBILE-3464
MOBILE-3464 tabs: Disable hide tabs on big screensmain
commit
7de95dc66f
|
@ -477,6 +477,11 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
||||||
* @param scrollElement Scroll element to check scroll position.
|
* @param scrollElement Scroll element to check scroll position.
|
||||||
*/
|
*/
|
||||||
showHideTabs(scrollElement: any): void {
|
showHideTabs(scrollElement: any): void {
|
||||||
|
// Do not scroll on very tall screens.
|
||||||
|
if (window.innerHeight >= 1024) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) {
|
if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) {
|
||||||
// Wrong tab height, recalculate it.
|
// Wrong tab height, recalculate it.
|
||||||
this.calculateTabBarHeight();
|
this.calculateTabBarHeight();
|
||||||
|
|
Loading…
Reference in New Issue