maca88 / datatables.plugins

MIT License
21 stars 5 forks source link

ColPin: Body and Header misaligned after first pin #5

Closed marianopeck closed 10 years ago

marianopeck commented 10 years ago

Hi,

My table body is misaligned with the header when using ColPin. However, as soon as I click any column...it gets correctly aligned. Any workaround so that it gets aligned even if no columns is pinned?

Thanks!

maca88 commented 10 years ago

I'm not able to reproduce it :/. Can you prepare an example for it? You can use this example as base: http://live.datatables.net/IroN/28

marianopeck commented 10 years ago

Done. I prepare an example. note that it ONLY happens with certain columns, not always. I think it might be related with tables that have many columns and an horizontal scroll. Here is a reproducible case: http://live.datatables.net/IroN/47

marianopeck commented 10 years ago

This issue may be because again I was including Bootstrap css in the example. I am trying to generate another example, but I cannot make ColPin to work :( (I don't see the pin icons)

http://live.datatables.net/IroN/76/edit

If that doesn't reproduce it, then I may need to add bootstrap and datatables-bootstrap integration..because I can reproduce this problem in my app.

marianopeck commented 10 years ago

Finally...I could reproduce it. http://live.datatables.net/IroN/88 Note the following..if you keep dom as is: "dom": "RJIt", it will be misaligned (go to the very end/right of the table). As soon as you pin one column, it gets correct. Also...if you remove ColPin (remove the R) then it is correct from the first render.

Can you see reproduce it?

Thanks!

marianopeck commented 10 years ago

Well...I cannot reproduce it anymore. I close the issue and re-open again later if I am able to reproduce it.