DataTables/Scroller

Problem With Padding in header...

DOUADYtom opened this issue · 6 comments

Like i saw in the issue : "Header and columns don't align when at > 100% zoom #44"
I've got the same problem without any zoom.

image

image

He put "padding-left: 17px;" I suppose for the same reason of the issue #44. I got

$.fn.dataTableSettings[0].oBrowser.bScrollbarLeft

true

Can you link to a test case please?

image
Replace => " a.bScrollbarLeft= Math.round(c.offset().left) !==1; " in Line 67;
Replace this line in jquery-dataTable.js , and It is working fine now.

change this line
// a.bScrollbarLeft=1!==c.offset().left; //For header misalignment
instead of this in your jquey-datatable.js
a.bScrollbarLeft = Math.round( c.offset().left ) !== 1;
Now its working fine..

Can you give me a link to a test case showing the issue please?

yaha i,ve forgot to attach the test case.but now its working fine..Thanks

The Issue related to this description, Zooming the screen adds padding-left in ScrollHeader, above line fixes it.