I have following HTML which works fine. But I want the div to take the height of the tab and not having to say its 200px. If I give 100% it does not work. Please ignore draggable as its 3rd party
<b-tab title="TAB">
<div class="table-wrapper-scroll-y custom-scrollbar">
<table class="table table-sm table-bordered table-striped table-hover">
<draggable :list="myLoop" :options="dragOptions" :element="'tbody'" class="rows">
<tr class="cursor-ns-resize" v-for="(row, index) in myLoop" :key="index">
<td>
<b-form-checkbox type="checkbox" v-model="row.checked" />
</td>
<td>
<span>{{ row.label }}</span>
</td>
</tr>
</draggable>
</table>
</div>
</b-tab>
CSS
.custom-scrollbar {
position: relative;
height: 200px;
overflow: auto;
}
.table-wrapper-scroll-y {
display: block;
}