primeng icon indicating copy to clipboard operation
primeng copied to clipboard

TreeTable: Resizing one column resizes other columns as well

Open B34v0n opened this issue 8 months ago • 0 comments

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 avatar Jun 21 '24 11:06 B34v0n