Why is there a minheight?
Why is there a minheight?
lang2
Posts: 5Questions: 0Answers: 0
Hi all,
I'm using datatable on my website. Some of the table are rather large but some of them are quite small - say 6 rows. For the small tables, datatable leaves a rather ugly gap afterwards. I checked the CSS and dataTables_wrapper has min-height of 302px, which looks like a random number. Any reason for that?
Thanks
I'm using datatable on my website. Some of the table are rather large but some of them are quite small - say 6 rows. For the small tables, datatable leaves a rather ugly gap afterwards. I checked the CSS and dataTables_wrapper has min-height of 302px, which looks like a random number. Any reason for that?
Thanks
This discussion has been closed.
Replies
there is a collapse variable to tell it to collapse that space
[code]
$(document).ready(function() {
$('#example').dataTable( {
"sScrollY": "200",
"bScrollCollapse": true
} );
} );
[/code]
Allan