Skip to content

Commit bf8c4d7

Browse files
committed
MOBILE-3401 tabs: Recalculate tab height if needed
1 parent 31041f5 commit bf8c4d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/tabs/tabs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
477477
* @param scrollElement Scroll element to check scroll position.
478478
*/
479479
showHideTabs(scrollElement: any): void {
480+
if (!this.tabBarHeight && this.topTabsElement.offsetHeight != this.tabBarHeight) {
481+
// Wrong tab height, recalculate it.
482+
this.calculateTabBarHeight();
483+
}
484+
480485
if (!this.tabBarHeight) {
481486
// We don't have the tab bar height, this means the tab bar isn't shown.
482487
return;

0 commit comments

Comments
 (0)