Permanently resize datatable
Permanently resize datatable

I use scroller plugin in my datatable and I want to resize it depending on the window height. I already used $('div.dataTables_scrollBody').height(NewHeight); but when the scroller loads it again it goes back to previous height.
$(window).bind('resize', function () {
var NewHeight = $(document).height() - 383;
$('div.dataTables_scrollBody').height(NewHeight);
});
This discussion has been closed.