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: Resizing one column resizes other columns as well #15876

Closed
B34v0n opened this issue Jun 21, 2024 · 0 comments · Fixed by #15927 · 4 remaining pull requests
Closed

TreeTable: Resizing one column resizes other columns as well #15876

B34v0n opened this issue Jun 21, 2024 · 0 comments · Fixed by #15927 · 4 remaining pull requests
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@B34v0n
Copy link

B34v0n commented Jun 21, 2024

Describe the bug

When trying to resize one specific column in the TreeTable, it resizes the others as well.

You can see the issue in https://primeng.org/treetable#scrollable, I created a gif:

columnMoves

Everytime I make the name-column bigger or smaller, the type-column moves a bit to the right.

In my local project, the issue is even bigger, because all of my remaining (14) columns get bigger when I resize one.

Also: shouldn't the size-column stay the same size as it is, when I resize the name-colum?

Environment

Chrome

Reproducer

No response

Angular version

17.3.10

PrimeNG version

17.18.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.13.1

Browser(s)

Chrome Version 126.0.6478.114

Steps to reproduce the behavior

  1. Go To https://primeng.org/treetable#scrollable
  2. Resize name-column
  3. type-column moves a little bit to the right, size-column gets smaller/bigger

Expected behavior

size-column should stay the size that it was resized to.
type-column should not change it's position ever so slightly.

@B34v0n B34v0n added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 21, 2024
B34v0n pushed a commit to B34v0n/primeng that referenced this issue Jul 1, 2024
… columns as well

the resizing is already done within the method "setWidth" so it doesn't need
to be done before that.
Doing it twice resulted in adding the delta twice.
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working LTS-PORTABLE and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 25, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.6 milestone Jul 25, 2024
cetincakiroglu added a commit that referenced this issue Jul 25, 2024
Fixed #15876 - TreeTable: Resizing one column resizes other columns a…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment