Merge pull request #2154 from marxjohnson/MOBILE-3143_integration

MOBILE-3143 Tabs: Prevent tabs disappearing when scrolling down.
main
Juan Leyva 2019-11-11 16:12:30 +01:00 committed by GitHub
commit 1f31797629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 26 deletions

View File

@ -223,10 +223,8 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
return; return;
} }
setTimeout(() => {
this.calculateMaxSlides(); this.calculateMaxSlides();
this.updateSlides(); this.updateSlides();
});
} }
/** /**
@ -352,7 +350,6 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
this.slideChanged(); this.slideChanged();
setTimeout(() => {
this.calculateTabBarHeight(); this.calculateTabBarHeight();
this.slides.update(); this.slides.update();
this.slides.resize(); this.slides.resize();
@ -377,7 +374,6 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
setTimeout(() => { setTimeout(() => {
this.updateAriaHidden(); // Slide's update() sets aria-hidden to true, update it. this.updateAriaHidden(); // Slide's update() sets aria-hidden to true, update it.
}, 400); }, 400);
});
} }
protected calculateMaxSlides(): void { protected calculateMaxSlides(): void {