Table length whitespace

Table length whitespace

bernie4711bernie4711 Posts: 6Questions: 0Answers: 0
edited January 2012 in General
Hi all,

I'm using DataTables 1.8.2 and I use it for displaying search results. I disabled pagination.
I have the problem that if there are less then 10 results I get a lot of whitespace.
If I have 1 result then it looks like I have 9 empty, invisible rows, which makes the layout a bit messy.
Take a look here: http://www.factfish.com/statistics/drill_down_local_search.php?search=Starnberg
I didn't find a way to prevent this invisibles lines or the whitespace.

Here is the javascript for building the table:
[code]
oTable = $('.factsTable').dataTable( {
"bLengthChange": false,
"bFilter": false,
"bPaginate": false,
"bInfo": false
});
[/code]

Any hint is appreciated!
Thanks

Bernhard

Replies

  • allanallan Posts: 63,552Questions: 1Answers: 10,477 Site admin
    Hi Bernhard,

    I assume you are using my demo_table.css? Remove the 'min-height: 302px' from the dataTable_wrapper class - that's what is causing the white space.

    This is removed in the 1.9 betas.

    Regards,
    Allan
  • bernie4711bernie4711 Posts: 6Questions: 0Answers: 0
    Hi Allan,

    that fixed it, thanks a lot!

    Bernhard
This discussion has been closed.