DataTables 1.8.1 released
DataTables 1.8.1 released
allan
Posts: 63,498Questions: 1Answers: 10,471 Site admin
Hello all,
I've just tagged and released DataTables 1.8.1, the first maintenance update for DataTables 1.8. This release is small in the number of changes, but it brings a number of welcome bug fixes and a few new features. Top of the new features list is that the two form elements DataTables uses (filter and length) are now wrapped in tags to aid accessibility. You'll also notice that when you click on the text "Search" it now focuses automatically on the filtering input box.
In terms of bug fixes the most significant change is in how scrolling is handled when x-scrolling is disabled but the space given to draw the table is too small. Previously DataTables would try its best and emit an error - which would result in misaligned columns. Now it won't enter that error state and simply draw the table as small as it can be. This is particularly noticeable on pages where the table resizes with the browser window and you make the browser window small.
DataTables 1.8.1 package download:
http://datatables.net/releases/DataTables-1.8.1.zip
As always release notes are available by clicking the "notes" link on the 1.8.1 download:
http://datatables.net/download
If you haven't yet taken the step from 1.7.x to 1.8, or you are new to DataTables you might find the blog post introducing 1.8 interesting:
http://datatables.net/blog/DataTables_1.8
What's new in 1.8:
http://datatables.net/new/1.8
Finally, please consider supporting DataTables further development and support by making a donation to the project :-)
http://datatables.net/donate
Enjoy!
Allan
I've just tagged and released DataTables 1.8.1, the first maintenance update for DataTables 1.8. This release is small in the number of changes, but it brings a number of welcome bug fixes and a few new features. Top of the new features list is that the two form elements DataTables uses (filter and length) are now wrapped in tags to aid accessibility. You'll also notice that when you click on the text "Search" it now focuses automatically on the filtering input box.
In terms of bug fixes the most significant change is in how scrolling is handled when x-scrolling is disabled but the space given to draw the table is too small. Previously DataTables would try its best and emit an error - which would result in misaligned columns. Now it won't enter that error state and simply draw the table as small as it can be. This is particularly noticeable on pages where the table resizes with the browser window and you make the browser window small.
DataTables 1.8.1 package download:
http://datatables.net/releases/DataTables-1.8.1.zip
As always release notes are available by clicking the "notes" link on the 1.8.1 download:
http://datatables.net/download
If you haven't yet taken the step from 1.7.x to 1.8, or you are new to DataTables you might find the blog post introducing 1.8 interesting:
http://datatables.net/blog/DataTables_1.8
What's new in 1.8:
http://datatables.net/new/1.8
Finally, please consider supporting DataTables further development and support by making a donation to the project :-)
http://datatables.net/donate
Enjoy!
Allan
This discussion has been closed.
Replies
Not sure if this was related to the fix for the small table rendering change as specified above but the following block is causing a rendering issue where the table is going out 16px greater than the div container it is inside of.
function _fnScrollDraw
/* If x-scrolling is disabled, then the viewport cannot be less than the sanity width */
if ( o.oScroll.sX === "" )
{
nScrollBody.style.width = _fnStringToCss( iSanityWidth+o.oScroll.iBarWidth );
nScrollHeadInner.parentNode.style.width = _fnStringToCss( iSanityWidth+o.oScroll.iBarWidth );
}
iSanityWidth is the current width of the parent container and then the iBarWidth is adding 16px to it each time. If I comment out these two lines in the if block the rendering is as desired. What is the exact purpose of the block above?
This is most noticable when the table first renders and I have 0 items in the aData array, showing the empty table message. There appears to be some correction logic of the headers that would fix the width assigned to the "dataTables_scrollHead" div that would make the width equal to the isanity value when a number of data objects in the array was passed in.
Regards,
Allan
Regards,
Allan
Allan
http://datatables.net/forums/discussion/5581/pdf-document-with-overwrittenoverlapped-elements-for-columns-which-are-bvisible-off-by-standard
I has upgraded to 1.8.1. It seems that it has fewer problems about the null value issue.
The new version is functioning after that I changed some scripts around my site now.
Is "rowspan" can be used in td elements in the newest verson?
if not ,could you pls add this feature?
Thanks
Allan
since you mentioned DT doesnot support rowspan in tbody
then my problem which you have seen here :
http://www.datatables.net/forums/discussion/comment/23772#Comment_23772
Is there any solution for me to realize this ?
Glad to take discussion with you
Thanks
loveDT
Allan