I believe datatables does not handle bPaginate with sWidth

I believe datatables does not handle bPaginate with sWidth

bwlangbwlang Posts: 20Questions: 0Answers: 0
edited November 2010 in Bug reports
I think datatables cannot handle the situation where

"bPaginate": false,
but columns widths are set with
tOpt.aoColumns = [
{"sWidth": "30em"},
...

While large changes to the widths cause some effect, the effect is not very predictable or large (at least in FF4,
ie/chrome)
switching bPaginate to true makes the columns much more proportional to the specified sizes.

Might be worth adding something to the doc of sWidth, that some iterative trial and error is needed to get the look you're going for. I suspect this is mostly a result of browsers that don't fully pay attention to header widths.

Or maybe I'm doing something wrong?

for an example see :
http://i.imgur.com/UnxfA.png (some data excised)
(sorry i can't share a live example)

no matter what i set the 3rd column's width to, I cannot observe much change (i want to shrink it down to a smaller size, but because of the long content lower in the able the width seems to be auto calculated).

here's my initialization code:
[code]
var gTableOptions = {
"sDom":"lpfrtpil",
"bStateSave": false,
"bSortClasses": false,
"oLanguage": {
"sSearch": "Search this table:"
},
"sScrollY": tableHeight(),
"bScrollCollapse": true,
"bPaginate": false,
"bProcessing": true,
"bJQueryUI": true
};
var tOpt = jQuery.extend(true,{},gTableOptions);
tOpt.bAutoWidth = false;
tOpt.bStateSave = true;
tOpt.aoColumns = [
{"sWidth": "30em"},
{"sWidth": "5em"},
{"sWidth": "40em"},
{"sWidth": "40em"},
{"sWidth": "5em"}
]
[/code]
This discussion has been closed.