Just a quick note first up, this issue applies to all 6.x versions, but I'm now running the Dev versions and have themed using ThemeRoller (1.7.3), fantastic!
Second, shout out to, Jon Duell, you're a champion for writing this module.
Now the issue.
The datatable module includes the demo_table.css file to apply a basic theme.
> drupal_add_css(drupal_get_path('module', 'datatables') .'/dataTables/media/css/demo_table.css');
So if you look a the source code it logically follows that you end up looking in demo_table.css for why you are getting a very squashed table.
Following though the html and code, the reason is that only half the CSS is actually applied due to the datatable drupal module not including the .display class in the outer table tag (it only adds views-table class).
This is really simple to fix, but took ages for me to find. Just add .display class to $vars as shown.
> $vars['class'] = 'views-table display';
I guess another option to fix this (without changing the DataTables drupal module) would be to modify the css file to change all .display tags to .views-table. But as that is maintained by others (datatables.net) this does not seem like it would be the preferred option.
Cheers,
Simon
Comments
Comment #1
duellj commentedThanks, added class to the 7.x branch (since I'm no longer supporting 6.x)