Is there a way to make the tab content take up 100% of the available space without causing a vertical scroll due to the height of the tab itself? I am currently using ng-bootstrap and need assistance with this specific issue. You can review my code in the styles.css file and /app/app.component.html here: https://stackblitz.com/edit/angular-ng-bootstrap-9obrp7?file=app%2Fapp.component.html
https://i.sstatic.net/ykwjT.gif
I am aware that I can solve this by using 'overflow', but I am curious as to why this problem is occurring in the first place. Additionally, ngb-tabset introduces two elements with classes .tab-content and .tab-pane, which I have set the height to 100% for. Otherwise, the tab content does not expand properly.
This is snippet of my code:
<ngb-tabset [destroyOnHide]="false">
<ngb-tab id="nav-tabContent" class="h-100 border1" title="Relación causa con Emoción">
<ng-template ngbTabContent>
<div class="border2 h-100">holi</div>
</ng-template>
</ngb-tab>
</ngb-tabset>
body,html{
height:100%;
margin:0px;
padding:0px;
}
.h-100{
height:100%;
}
.tab-content {
height:100%;
}
.tab-pane {
height: 100%;
}