Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

DataTables renders height on 0px

$
0
0

So you'll see in the picture linked that when I use scrollX another <thead> element is created. In that <thead> contains a <tr> with a height of 0px.

but in the picture you can see that it renders it with a height of 20px.

http://oi57.tinypic.com/1zflqah.jpg

$.ajax({
        type : 'post',
        url : '/report_data',
        data : $('#the_form').serialize(),
        success : function(data) {
            $('#table').html('<table id="dataTable" class="table table-striped table-bordered table-hover dataTable"></table>');
            $('#dataTable').dataTable({
                "data" : data.data,
                "columns" : data.columns,
                "scrollX" : "50%"

            });
        }
});


Viewing all articles
Browse latest Browse all 35272

Trending Articles