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

IgxGrid: wrong order and duplication of columns after resizing and scrolling the grid #13688

Closed
ddaribo opened this issue Nov 14, 2023 · 0 comments · Fixed by #13718, #13720 or #13721
Closed
Assignees
Labels
🐛 bug Any issue that describes a bug grid version: 16.1.x version: 17.0.x version: 17.1.x virtualization ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@ddaribo
Copy link
Contributor

ddaribo commented Nov 14, 2023

Description

An IgxGrid, where the columns widths are defined, such that they take less than the available grid horizontal space (for example column width for all is set to 100px and the grid's width resolves to > columns.length * 100. The width of the columns could also be set to "auto", provided that the first condition is met and there is empty space after the last column.

When resizing the screen horizontally, such that a scrollbar appears in the grid, scrolling it to the end horizontally and then going back to full width of the screen, the columns order is not as defined and there are some duplicated ones.

  • igniteui-angular version: 17.0.x, 16.1.x, 15.1.x and earlier
  • browser: any

Steps to reproduce

  1. Open this sample and click "Open in New Tab" in StackBlitz

  2. Open the Dev Tools

  3. Resize the Dev Tools panel so that the grid is significantly shrinked, for example only the first three columns remain visible

  4. Scroll the grid hroizontally to the end

  5. Close the Dev Tools

  6. Alternatively, perform the same by minimizing/maximizing the browser window.

Result

The columns are not rendered in the correct order and some of them ar duplicated. When clicking on any of the duplicated columns' headers, both instances get highlighted as selected.

Expected result

Keep columns as defined, no duplicates.

Attachments

igx-grid-issue

@ddaribo ddaribo added 🐛 bug Any issue that describes a bug 🆕 status: new grid labels Nov 14, 2023
@ddaribo ddaribo assigned ddaribo and unassigned dkamburov Nov 28, 2023
@ddaribo ddaribo added 👀 status: in-review Issue is currently being reviewed 🛠️ status: in-development Issues and PRs with active development on them virtualization version: 16.1.x version: 17.0.x and removed 🆕 status: new 👀 status: in-review Issue is currently being reviewed labels Nov 28, 2023
@ddaribo ddaribo added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. version: 17.1.x and removed 🛠️ status: in-development Issues and PRs with active development on them labels Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment