IgxGrid: wrong order and duplication of columns after resizing and scrolling the grid #13688
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.
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 to100px
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.
Steps to reproduce
Open this sample and click "Open in New Tab" in StackBlitz
Open the Dev Tools
Resize the Dev Tools panel so that the grid is significantly shrinked, for example only the first three columns remain visible
Scroll the grid hroizontally to the end
Close the Dev Tools
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
The text was updated successfully, but these errors were encountered: