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

TreeTable: Header/Footer columns are misaligned #15610

Open
can-oezkan opened this issue May 17, 2024 · 1 comment
Open

TreeTable: Header/Footer columns are misaligned #15610

can-oezkan opened this issue May 17, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@can-oezkan
Copy link
Contributor

can-oezkan commented May 17, 2024

Describe the bug

Header/Footer columns are misaligned

https://primeng.org/treetable#gridlines

image

There is a padding of 17px applied to the right of header/footer:
image

Environment

unrelated

Reproducer

https://primeng.org/treetable#gridlines

Angular version

unrelated

PrimeNG version

17.16.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

unrelated

Browser(s)

No response

Steps to reproduce the behavior

  1. Visit https://primeng.org/treetable
  2. View all treetables

Expected behavior

Header/Footer columns should align with body columns.

Example (Table Component):
image

@can-oezkan can-oezkan added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 17, 2024
@can-oezkan can-oezkan changed the title TreeTable: Header columns are misaligned TreeTable: Header/Footer columns are misaligned May 17, 2024
@Sinan997
Copy link
Contributor

Sinan997 commented May 18, 2024

This line is responsible for this bug. It adding a padding no matter scroll bar exist or not.

(this.scrollHeaderBoxViewChild as ElementRef).nativeElement.style.paddingRight = scrollBarWidth + 'px';

I have tested it in my local, i deleted this line it solved the problem and nothing broke up.

But i am not sure, it might broke something. Maybe @cetincakiroglu can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants