Bug (with fix) showing/hiding columns

Bug (with fix) showing/hiding columns

mscottmscott Posts: 1Questions: 0Answers: 0
edited November 2011 in Bug reports
I've found that if I make a hidden column visible, where this hidden column is going to show in the next-to-last column, the column's data is shown in the last column instead of the next-to-last. This is because of a simple logic error at line 2052 (in the 1.8.2 release), here:

[code]
/* Need to decide if we should use appendChild or insertBefore */
bAppend = (iInsert >= _fnVisbleColumns( oSettings ));[/code]

The ">=" needs to be changed to just ">", then the columns show correctly.

Thanks.

Replies

  • allanallan Posts: 63,383Questions: 1Answers: 10,449 Site admin
    Nice one - thanks for flagging this up. I'm in the middle of some major reorganisation of the DataTables core, but I've bookmarked this to come back to when I finish it in a couple of days.

    Regards,
    Allan
This discussion has been closed.