Data Tables will not resize on Splitter Pane
Data Tables will not resize on Splitter Pane
![Danny234](https://secure.gravatar.com/avatar/9b319d2ab1591d535b210d583fa3bfbc/?default=https%3A%2F%2Fvanillicon.com%2F9b319d2ab1591d535b210d583fa3bfbc_200.png&rating=g&size=120)
Hi,
I am using dataTables to adjust some old websites and it works fine untll now. I do have a site with a Splitter and created on both sides dataTables.
When i respilt the side, dataTables doesn't adjust their size. I tried diffrent things including calling
tabllef.columns.adjust().draw();
with:
tabllef = $('#table-left').DataTable({
data: dataSource,
"columns":dataColumns,
"stateSave": true,
});
whenever the split bar is moved. but the dataTables do not adjust to the new size of the wrapper (pls. see picture).
I think the solution is easy, but the only way of adjusting the tables to the new pane sizes is by destroying and rebuilding them. Is there a better solution?
Any help is really welcome!
Answers
Ah I found it. It is setting the HTML to