When no y-scroll bar -> problem when scrolling with x-scrollbar
When no y-scroll bar -> problem when scrolling with x-scrollbar
I have a table with fixed columns to the left and right.
When there are no y-scrollbar the right fixed table is positioned 17px to far left, so when you scroll the table horizontally you can see the "original" table columns in the gap between the fixed tables right border and the right border of the "original" table.
And the last tablecolumn value in the scrollable part are truncated (see Caras Extn.).
I bit hard to explain, but please go here to see for yourself:
http://live.datatables.net/sezagese/3/
How can I solve this?
This question has an accepted answers - jump to answer
Answers
I really like this tablecomponent so I hope this will be resolved in future versions!
Meanwhile I solve this by including the folowing in my css-file:
div.dataTables_scrollBody {
overflow-y: scroll !important;
}
div.DTFC_RightHeadBlocker {
display: block !important;
}
This forces the y-scrollbar to always beeing displayed and this makes the right fixed table to be positioned so that there are no gap and the values of the last columns in the scrollable table is not truncated.
Thanks for pointing that out. That is indeed a bug that I will look into shortly.
I'll post back here when the fix has been committed.
Allan
Hi,
I've finally had a chance to dig into what is going on here, and it turns out this was a bug that was introduced by the support for right-to-left layouts. I've committed the required fix and the right column will be correctly positioned for ltr and rtl layouts, regardless of the scrollbar now.
Thanks again for flagging this up.
Regards,
Allan
Thanks! :-)