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

Datatable: Stateful, resizable, scrollable table could not restore column widths properly #3385

Open
klsl2008 opened this issue Dec 8, 2022 · 1 comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team vue2
Milestone

Comments

@klsl2008
Copy link

klsl2008 commented Dec 8, 2022

Describe the bug

The example is a modified version of "Horizontal and Vertical with Footer" in official website: https://primefaces.org/primevue-v2/#/datatable/scroll

The datatable is configured to be stateful, column resizable to "expand" and horizontally scrollable.

The problem is that after resizing the columns and reloading the page, the columns are not restored to modified widths. Also the table would overflow the container box which is not expected.

Reproducer

https://codesandbox.io/s/primevue2-stateful-scrollable-resizable-datatable-yj23h2?file=/src/App.vue

PrimeVue version

2.10.1

Vue version

2.x

Language

ES6

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to reproducer link
  2. Resize the first column such that the table width should be large than window width and scrollbar appears.
  3. The table should be still inside the black bordered container box and the first column becomes wider.
  4. Press "Reload" button to reload the page.
  5. The first column reverts back to original width and the table overflow the container box.

Note: You can press "Reset State and Reload" to retry from step 1.

Expected behavior

  1. The first column should have the width set to value in step 2.
  2. The table should not overflow the container box.
@klsl2008 klsl2008 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 8, 2022
@klsl2008 klsl2008 changed the title Datatable: Stateful, resizable, scrollable table could restore column widths property Datatable: Stateful, resizable, scrollable table could not restore column widths property Dec 8, 2022
@klsl2008 klsl2008 changed the title Datatable: Stateful, resizable, scrollable table could not restore column widths property Datatable: Stateful, resizable, scrollable table could not restore column widths properly Dec 8, 2022
@iuriag
Copy link

iuriag commented Jul 4, 2024

Any deadline for when this will be adjusted/released?

@mertsincan mertsincan added this to the 2.10.5 milestone Dec 27, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Dec 27, 2024
@mertsincan mertsincan added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team vue2
Projects
Status: Review
Development

No branches or pull requests

4 participants