IE7 issue with _fnApplyToChildren

IE7 issue with _fnApplyToChildren

lagoutlagout Posts: 3Questions: 1Answers: 0
edited September 2013 in Bug reports
// Apply all widths in final pass. Invalidates layout only once because we do not
// read any DOM properties.
_fnApplyToChildren(function (nToSize, i) {
nToSize.style.width = aApplied[i];
}, anHeadToSize );

Have not had much time to investigate deeper into this issue in IE7 as of yet but I thought I'd leave this here just incase. Every time the table loads/ scroller update occurs I get an IE7 exception because aApplied[I] == undefined. For the time being I've set my code to...

// Apply all widths in final pass. Invalidates layout only once because we do not
// read any DOM properties.
_fnApplyToChildren(function (nToSize, i) {
if (aApplied[i] != undefined)
nToSize.style.width = aApplied[i];
}, anHeadToSize );

Not something I've wanted to do but I'm not sure what relation this function has to the table at the moment.

Replies

  • lagoutlagout Posts: 3Questions: 1Answers: 0
    Oh and my table is declared as...

    oTable = $('#table').dataTable({
    "sDom": "frtiS",
    "sScrollY":'400px',
    "bServerSide": true,
    "bPagination": true,
    "bFilter": false,
    "sAjaxSource": ....(working)",
    "fnInitComplete": function() {
    this.fnAdjustColumnSizing();
    },
    "bSort" : false,
    "bProcessing": true,
    "bDeferRender": true,
    "bScrollCollapse": true,
    "fnDrawCallback": fnAfterDraw,
    "aoColumns": [

    { "sTitle": "a1", "bSortable": true },
    { "sTitle": "a2", "bSortable": false },
    { "sTitle": "a3", "bSortable": false },
    { "sTitle": "a4", "bSortable": false },
    { "sTitle": "a5", "bSortable": false },
    { "sTitle": "a6", "bSortable": false },
    { "sTitle": "a7", "bSortable": false },
    { "sTitle": "a8", "bSortable": false },
    { "sTitle": "a9", "bSortable": false },
    { "sTitle": "a10", "bSortable": false }
    ],
    "oScroller": {
    "loadingIndicator": true
    },
    "bStateSave": true
    });
  • allanallan Posts: 56,211Questions: 1Answers: 8,904 Site admin
    Very odd - I've not seen this issue in IE7 before or other reports of the issue. Which version of DataTables are you using? If you disab;e some of the options (scroller, deferred rendering) does it work?
This discussion has been closed.