-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Table with scroll has misaligned headers if scrollbar is not visible #9413
Comments
I have the same issue. A workaround I did is .p-datatable-scrollable-body {
overflow-y: scroll;
} But this is annoying... |
This is fixed in 11.0.0-rc.1, will back port to LTS versions as well. a365b7a#diff-54f9fcc81f3c7d880cfe5f7ddd5dda1e60f15581a7ce88dd922b0586b1f259a1 |
@cagataycivici not sure if there was a regression, or if this actually wasn't fixed, but the problem is still present with PrimeNg 11.2.0. https://stackblitz.com/edit/primeng-scroll-table-header-offset-bug-11-2 |
The fix seems to set: |
It is also still present in LTS 10.0.8: https://stackblitz.com/edit/primeng-scroll-table-header-offset-bug-vsgdvf?file=package.json |
The issue is still present in Primeng 14.0.0 if there horizontal scrollbar. To reproduce shrink the preview box. https://stackblitz.com/edit/primeng-scroll-table-header-offset-bug-11-2-gowmsr?file=src%2Fapp%2Fapp.component.html |
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/primeng-scroll-table-header-offset-bug?file=src/app/app.component.html
Current behavior
Scrollable table headers are offset if table does not have enough rows to need a scrollbar.
Expected behavior
Headers and table columns should align correctly whether table has a scrollbar or not.
It looks like a fix for this long-standing problem was attempted in #9218, but that fix only seems to align the header correctly if the table has a scrollbar. Headers are offset if table has no scrollbar.
The text was updated successfully, but these errors were encountered: