Offset relative to the header cells

Offset relative to the header cells

puZakulapuZakula Posts: 5Questions: 0Answers: 0
edited October 2013 in General
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...

Replies

  • janiscmbpjaniscmbp Posts: 6Questions: 0Answers: 0
    edited October 2013
    I found out yesterday that my Datatables column and header alignment is broken due to Chrome update. Datatables in use is in version 1.8.1. I post to this thread because it is related to Chrome updating to 30.0.1599.69 m.

    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.
  • treystatreysta Posts: 5Questions: 0Answers: 0
    Same here. I just posted a duplicate of this discussion. Ooops.

    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
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Discussion on the Chrome 30 issue continuing here: http://datatables.net/forums/discussion/17714
  • puZakulapuZakula Posts: 5Questions: 0Answers: 0
    A discussion of how to close?
This discussion has been closed.