DataTable Column Resize with Expand Mode doesn't work correctly

UI Components for React
Post Reply
primereact_irdeto
Posts: 2
Joined: 20 Jul 2022, 21:49

17 Jan 2023, 21:04

See the example on primefaces.org:
https://www.primefaces.org/primereact/d ... colresize/

Steps:
- go to the section labelled 'Expand Mode'
- Use your mouse to drag the right side of the 'Name' column an inch to the right
- Expected: Name column resized, all other columns to the right shifted by that amount but not resized, all other columns to the left untouched
- Actual: The Code column changes size slightly. Not by as much as you resize the Name column, but it always changes, and it changes more if you resize Name more. This also happens for any other column aside from the first one.

This also happens in local code, so it doesn't appear to be a problem just with the demo site.

This only seems to be a problem with Expand Mode -- Fit mode works correctly.

Tried this on a Mac OS 12.6.2 using:
- Firefox Developer Edition 109.0b9
- Safari 16.2

primereact_irdeto
Posts: 2
Joined: 20 Jul 2022, 21:49

18 Jan 2023, 23:25

I found the root cause. I've entered a bug in Github on this.

https://github.com/primefaces/primereact/issues/3970

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

21 Jan 2023, 19:26

Thank you for the bug report!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: Phillipdum and 21 guests