DataTables with Scroller has problems with sub-pixel rendering

DataTables with Scroller has problems with sub-pixel rendering

hubohubo Posts: 45Questions: 14Answers: 0

I find out, that DataTables 1.10.5 with Scroller 1.2.2 has problems with sub-pixel rendering (supported by IE and in some cases even in other browsers). Scroller wrongly computes height of row (because of rounding). The problem is not a new one (it is even in previous versions).

Answers

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin

    That is going to be a real problem to fix I think since I can't read sub-pixel values in Javascript. However, thanks for letting me know about this. I'll try to reproduce the issue and figure out how to resolve it as soon as I can (although I've got quite a backlog at the moment, so it probably won't be soon).

    Allan

  • hubohubo Posts: 45Questions: 14Answers: 0

    You can read sub-pixel values using JavaScript. The latest jQuery is rounding (.width() function) to 2 decimals. You can get exact value by using DOM element .getBoundingClientRect() function.

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin

    Interesting! Thanks for the tip.

    Allan

This discussion has been closed.