Trouble with responsiveness
Trouble with responsiveness
Hi,
I run multiple portals for scientific data that utilize DataTables. They are all built off similar templates, and for most of them the responsive plugin works fine. However, we've been having some trouble getting it working on one portal in particular:
Working portal: https://tde.space
Not working portal: https://faststars.space
To see responsive fail to work, make more columns visible via the "column visibility" button.
Any idea what could be different between the two portals that prevent responsive from working? Having a really difficult time isolating the error.
This question has an accepted answers - jump to answer
Answers
Hi @guillochon ,
I just tried both, and sorry if I'm being slow-witted, but they both appeared to work fine to me. The columns were removed responsively and appeared as child rows.
Could you give a step by step guide on how to make faststars not work, please?
Cheers,
Colin
Hi @colin,
With faststars, if you make a few more columns visible the table runs off the right hand side, as shown here (it seems to be the case for any columns I make visible):
If you make enough visible, the responsive controls do appear, but then they never disappear as you hide columns again, they remain in the child rows forever (until you reload the page):
This is in Chrome 65, OS X.
Gotcha, thanks for that. It looks like something to do with either CSS or the container settings. I'll speak to 'the man' and see what he says
Hi again,
Apparently that was a bug, waiting to be released. It's been pushed so it'll build tonight in the nightly temporary releases, and it'll be in the next official release when that's made (should be soonish). Could you give https://datatables.net/download/nightly#Responsive a try tomorrow, and see if that does resolve the issue, please?
Cheers,
Colin
Try using version 2.0.0 of dataTables.responsive.min.js. All versions above this one are bugged.
I warned DataTables group about it, many months ago, but they did nothing about it!
https://dropbox.com/s/j1k4fe3ajymru49/dataTables.responsive.min-2.0.0.zip?dl=
Hi @aldemarcalazans ,
Nope, it's not bugged, this issue was fixed. As Allan said on your other thread, if your issue is outstanding, please provide more information there.
Cheers,
Colin