MOBILE-3143 Tabs: Prevent tabs disappearing when scrolling down.
parent
3edc42ccc2
commit
4e590b26dc
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue