Responsive breakpoint when controls are displayed
Responsive breakpoint when controls are displayed
Hello,
I'm using Datatables (1.10.5) with Responsive (1.0.5_dev) and I noticed a minor issue with the way the table resizes. When the controls aren't displayed the resizing looks good and the columns are hidden at the right time. But when I have my "+" icon in the first column, the table resizes juste a little bit too late because of the left padding added on the first cell of each row to make the controls fit in there.
See for yourself :
Table, without the controls displayed yet, right before the next resize
Table, with the controls displayed, right before the next resize
You can see that the space in the top right (marked with the red arrow) is the same in size as the padding added for the controls. My guess is that the minimum width for each column is calculated once when the table is initialized and that is why the width added by the controls isn't taken into consideration.
So my question is, do you know if there is a way to fix this ? I tried to look into the plugin's code but I wasn't sure where to look.
Thanks.