Column sizing in V2.3.5 is off when table data contains script tags
Column sizing in V2.3.5 is off when table data contains script tags
It seems that the new column sizing function (_fnGetWideStrings) in V2.3.5 (doesn't happen in 2.3.4) is overcalculating the width of columns if they have script tags in as it doesn't strip/remove script tags.
Below is an example. Please excuse the 'test' functions but they just illustrate the point that the longer the function names in the script tag, the more blank space appears in the column
Test case:
https://jsfiddle.net/sr86cnea/5/
Replies
Interesting - thank you. I hadn't anticipated a
scriptbeing used in a table cell. That would certainly cause it problems! I had planned to tag a new release today, but I'll hang on until I've got a fix for this, which might or might not be today depending on how other things pan out!Allan
Thanks so much for your super speedy reply. Script tags in there maybe not be so common, though we have quite a few in a project, for better or worse.
I've made a couple of commits to address this issue and your test case is working better with the nightly build. I'll tag and release 2.3.6 tomorrow with this and some other changes.
Allan