Closed Tklaversma closed 8 years ago
Can you link to a test page showing the issue so I can try to debug what is happening please.
@DataTables Here you can find a fully working example. I used the Download builder to create the debug version of the version I'm using. In jsFiddle you can find the libraries on the left panel under "External Resources".
Note that before I updated my DataTables to 1.10.10, Responsive to 2.0.0 and Buttons to 1.1.0, the buttons were as close to eachother as after the window resize. So personally I think Responsive "forgets" to (re)calculate column widths onload or something..
Thanks for helping me out!
Thanks for the link. I'll take a look into it as soon as I can.
@DataTables Thanks for taking a look at it. I'll await your response.
The issue is related to the use of the never
class - that is really legacy now and should no longer be used in v2.
Add the following the DataTables columns initialisation and it helps:
{
targets : 'never',
visible: false
}
It isn't quite right, but I'll continue to look into it.
Thanks for letting me know. I'll update my code to not use never
anymore. But what is the new way of using it? Your example or is that a workaround?
Use the DataTables column visibility controls - the never
class was always a workaround.
However, it looks like there is still an error, when Responsive is required on load.
Ah ok. Thank you for showing me the correct way of using "never" (or what ever I want to call it :P). Good luck with fixing the error in Responsive.
Greetings!
Going to reopen so I remember to fix this... :-)
Closing again as a result of the fix for #66.
Hi Allen,
When DataTables is loaded it's show the table with incorrect column widths (see here). When I resize the browser window, it's automatically show the correct widths (see here).
Since I updated my DataTables to 1.10.10, Responsive to 2.0.0 and Buttons to 1.1.0 this is happening..
Hope you can help me out.
Regards, TK