Offset relative to the header cells
Offset relative to the header cells
Excuse me for my English.
And please help my problem ..
the derivation of the table width and header cells is different .. is seen in the screenshot:
http://joxi.ru/QgNTUtg5CbAIbUywgeE
[code]
var oTable = $('#' + tableId).dataTable({
'sScrollY': '764px',
"aoColumns": [
{ "sClass": "tbName", "sWidth": "35%" },
{ "sClass": "tbTiker", "sWidth": "10%" },
{ "sClass": "tbTp", "sWidth": "25%" },
{ "sClass": "tbdy", "sWidth": "10%" },
{ "sClass": "tber", "sWidth": "10%" },
{ "sClass": "tbLoss", "sWidth": "10%" }
],
'bScrollCollapse': false,
'bPaginate': false,
'bFilter': false,
'bInfo': false,
'bDestroy': true
});
[/code]
on the last column (tbLoss) hides:
[code]
oTable.fnSettings().aoColumns[getNumberColumn(oTable, 'tbLoss')].bVisible;
oTable.fnSetColumnVis(getNumberColumn(oTable, 'tbLoss'), false);
[/code]
and this problem only in Google Chrome 30.0.1599.69
other browsers will accept the code adequately.
Although in chrome, too, was initially OK, but at some point broke, kickbacks did not help, I'm at a dead end ..
-----------------
Also:
Feature found in other browsers also have a slight variation in the size of columns, but corrected after sorting, in Chrome not right...
And please help my problem ..
the derivation of the table width and header cells is different .. is seen in the screenshot:
http://joxi.ru/QgNTUtg5CbAIbUywgeE
[code]
var oTable = $('#' + tableId).dataTable({
'sScrollY': '764px',
"aoColumns": [
{ "sClass": "tbName", "sWidth": "35%" },
{ "sClass": "tbTiker", "sWidth": "10%" },
{ "sClass": "tbTp", "sWidth": "25%" },
{ "sClass": "tbdy", "sWidth": "10%" },
{ "sClass": "tber", "sWidth": "10%" },
{ "sClass": "tbLoss", "sWidth": "10%" }
],
'bScrollCollapse': false,
'bPaginate': false,
'bFilter': false,
'bInfo': false,
'bDestroy': true
});
[/code]
on the last column (tbLoss) hides:
[code]
oTable.fnSettings().aoColumns[getNumberColumn(oTable, 'tbLoss')].bVisible;
oTable.fnSetColumnVis(getNumberColumn(oTable, 'tbLoss'), false);
[/code]
and this problem only in Google Chrome 30.0.1599.69
other browsers will accept the code adequately.
Although in chrome, too, was initially OK, but at some point broke, kickbacks did not help, I'm at a dead end ..
-----------------
Also:
Feature found in other browsers also have a slight variation in the size of columns, but corrected after sorting, in Chrome not right...
This discussion has been closed.
Replies
Perhaps this
http://stackoverflow.com/questions/19233337/datatables-sscrolly-white-spacenowrap-broken-in-chrome-30-0-1599-69-m
has something to do with it.
Any pointers? Updating DT just now is a lot of work, and I am not sure it would fix it. I tried commenting out white-space:nowrap; as per link, but that did not help me.
I'm using 1.9.4 It seems to only affect my server side / remote datatables that are using the bootstrap styling.
I am using white-space:nowrap also, as mentioned in the stackoverflow article.
I can provide login info for debug purposes