Setting the datatable min height
Setting the datatable min height
![andreacoba](https://secure.gravatar.com/avatar/aa1fa188d1fd041843f11a59566031de/?default=https%3A%2F%2Fvanillicon.com%2Faa1fa188d1fd041843f11a59566031de_200.png&rating=g&size=120)
Hi, I'm wondering how to properly set the height of a jquery datatable without messing up its rows height. I tried setting sScrollY and it doesn't do anything. I tried setting the min-height property and two issues occur: the rows become very large (height) and the datatable height doesn't change... I also tried just setting the height property using CSS and the same issue as with min-height occurred.
Any ideas?
Any ideas?
This discussion has been closed.
Replies
What you can do is set the min-height on the wrapper element, which will cause the control as a whole to take up that minimum height (.dataTable_wrapper is the call you want).
Allan
$('.dataTables_scrollBody').css('height', '200px');
But when i change the lenght of number of rows it again took previous height
Please Help !!!.