Datatable body wider than header

Datatable body wider than header

nutless_neonutless_neo Posts: 13Questions: 0Answers: 0
edited May 2012 in General
I'm having an issue with the body of the datatable rendering wider than the header and outside it's parent DIV. It looks like it's a problem with the number of titles I have versus the size of the header and footer. When I place the datatable in a page of it's own and resize the browser window, the same issue occurs.

EXAMPLE: http://michael.benefitharbor.com/dev/Employer/JqueryScrollingTabs.htm

Replies

  • allanallan Posts: 63,546Questions: 1Answers: 10,476 Site admin
    You need to call fnAdjustColumnSizing when the tab is made visible. See this example for how to do it and more information: http://datatables.net/release-datatables/examples/api/tabs_and_scrolling.html .

    Allan
  • nutless_neonutless_neo Posts: 13Questions: 0Answers: 0
    Thanks for the info, it's getting me closer to my goal. However, using that script; now each tab is showing the content for all the tabs (make sense?) and first table is working as it should, but then the tables after that, the body content is actually smaller than the header and footer. I'll try and get an example up for you.
  • nutless_neonutless_neo Posts: 13Questions: 0Answers: 0
    Okay I fixed the content/tabs issue now the tabs are showing the appropriate content. however, I am still having some layout issues. Will post an example shortly.
This discussion has been closed.