Skip to content

Commit 015c237

Browse files
committed
fix(): fix height calculation to match new tab button dimensions
1 parent 72e8688 commit 015c237

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/super-tabs.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,11 @@ export class SuperTabs implements OnInit, AfterContentInit, AfterViewInit, OnDes
552552
let heightOffset: number = 0;
553553

554554
if (this._isToolbarVisible) {
555-
heightOffset -= 4;
556-
this.hasTitles && (heightOffset += 40);
557-
this.hasIcons && (heightOffset += 40);
555+
if (this.hasTitles && this.hasIcons) {
556+
heightOffset = 72;
557+
} else if (this.hasTitles || this.hasIcons) {
558+
heightOffset = 48;
559+
}
558560
}
559561

560562
this.rnd.setStyle(this.tabsContainer.getNativeElement(), 'height', `calc(100% - ${heightOffset}px)`);

0 commit comments

Comments
 (0)