Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82782

Setting table minimum height on search collapse

$
0
0

Still new to data tables. All is working but when I apply a search the number of rows returned collapses as expected and the container shrinks accordingly. This creates an issue with some custom menus I have added via a row call back. So I would like to see about setting a minimum height of the table container so even if 2 rows of data were returned the size of the container was say 5 rows high to accommodate the menus I have added. Basically they pop up but since the container is only 2 rows high, you can't see/use the menu.

I have added min-height: 400px; for example to the div.dataTables_scrollBody css, however this made the correct size, but made the 2 returned rows large enough to fill that. So how can I insert a "blank row" if need be to maintain the correct minimum size of the container. Hope that makes sense. Thanks.


Viewing all articles
Browse latest Browse all 82782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>