I am having a hard time making the vuetify datatable fit to the screen along with pagination footer sticking to the bottom of the screen regardless of number of rows in the data table.
I tried to set the footer to use following css to always stick to the bottom but it doesn't work as expected
#table .v-data-footer {
position: absolute;
bottom: 0;
}
#table .v-data-table__wrapper {
height: 400px;
margin-bottom: 100px;
overflow: auto scroll;
}
When the data table has more number of rows, it simply pushes the pagination control to the bottom and it is not visible until I scroll it down to the very bottom.One thing I also tried to do is to set a fixed height for the data table but this is not ideal because of the device sizes, for larger screen size it behaves really weird.
I have a codepen with a simple data table, when we increase the number of rows from pagination control, it loads more number of rows and the footer simply hidden because of height. I expect the data table to have a height for the content so that user can scroll through the rows and the pagination control should always stick to the bottom no matter what the device size is.
I would really appreciate if anyone can help or give me any pointers on this.