Bug Responsive 2.2.1 bootstrap 4 in Collapse Componet
Bug Responsive 2.2.1 bootstrap 4 in Collapse Componet
MarisaAvast2
Posts: 4Questions: 1Answers: 0
Responsive-2.2.1
https://getbootstrap.com/docs/4.0/components/collapse/
When entering a table into a collapse, the table is not responsive unless the window is resized manually. (Large and reduce again)
This discussion has been closed.
Answers
You need to call
columns.adjust()
when the table is made visible.Allan
It does not work, I tried it
OR
You need to call it after the table has been shown. Try:
table.columns.adjust()
inside yourafterShow
event handler.Allan
Thanks for your response, but I tried it too and it does not work.
If you could link to a page showing the issue I can take a look. The HTML file above doesn't actually run DataTables.
Allan
Are you able to link to a running test case please? I've tried to put your code above into a page and changed the URLs to load, but it doesn't appear to do much. A link to a page showing the issue would be useful.
Thanks,
Allan
Same problem. Solved with this.