DataTables / DataTables/Scroller
Columns are miss-aligned when zoomin in/out with the browser
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 83
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Reproducible in Chrome
Everything is pretty standard except cells have a right border (to check if columns become miss-aligned)
table.dataTable thead th,
table.dataTable tbody td {
border-right: 1px solid red;
}
When zooming in with the browser, for example at 150%, the borders start to become miss-aligned, the more to the right, the worse it becomes. Zooming out at 80% causes the same issue. https://jsfiddle.net/dalvarezmartinez1/jo6vnd1c/12/
Note, the problem is not reproducible, if instead of borders, we're using background-color to observe the miss-alignment
table.dataTable thead th:nth-child(odd) {
background-color:red;
}
table.dataTable tbody td:nth-child(odd) {
background-color:blue;
}
Not reproducible with background color instead of border: https://jsfiddle.net/dalvarezmartinez1/jo6vnd1c/19/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Chrome jsfiddle and reproduce the issue at 150% and 80% zoom using the border CSS example; compare it with the background-color case. Done means header and body column borders remain aligned at both zoom levels.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100