Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem With Padding in header... #87

Open
DOUADYtom opened this issue May 27, 2020 · 6 comments
Open

Problem With Padding in header... #87

DOUADYtom opened this issue May 27, 2020 · 6 comments

Comments

@DOUADYtom
Copy link

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

@DataTables
Copy link
Collaborator

Can you link to a test case please?

@Abran7411
Copy link

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.

@ghost
Copy link

ghost commented Jun 4, 2022

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..

@AllanJard
Copy link
Contributor

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

@ghost
Copy link

ghost commented Jun 4, 2022

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

@Abran7411
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants