Bug? Table is just a little too wide when using scrollX and it would fit in allocated width
Bug? Table is just a little too wide when using scrollX and it would fit in allocated width
therealgilles
Posts: 1Questions: 1Answers: 0
in Bug reports
Description of problem:
I have a table that fits within the allocated width in a div. If I enable scrollX on the table, the table seems to become a little wider and the scroll bar gets unnecessarily enabled. Is this by design?
I enable scrollX because my columns are dynamically generated, so sometimes the table is wider and the scrollbar is necessary.
This discussion has been closed.
Answers
Do you have
style="width:100%"
on thetable
tag as shown in this example?Is the table hidden when Datatables is initialized?
Does this example exhibit the behavior you describe?
http://live.datatables.net/panusogi/1
If this example doesn't show the issue please update it or provide a link to your page or a test case so we can take a look.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin