igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

IgxGrid rows are not rendered correctly when cell container changes its height by changing column width

Open ymita opened this issue 6 years ago • 3 comments

Description

IgxGrid rows are not rendered correctly when cell container changes its height by changing column width

  • igniteui-angular version: 8.2.12
  • browser: Chrome

Steps to reproduce

  1. Sort by 'id' column
  2. Narrow 'name' column to its minimum width
  3. Scroll down to the bottom and scroll up to somewhere in the middle
  4. Widen 'name' column The behavior is not reproducible all the time. So please repeat the steps several times.

Result

A white space appears at the bottom of the grid

Expected result

Rows should be rendered on the white space.

Attachments

Attach a sample if available, and screenshots, if applicable.
IgxGrid_RowsRenderingIssue2

igx-grid-rows-rendering-issue.zip

ymita avatar Dec 10 '19 04:12 ymita

@ymita If the behavior is not reproducible every time, then does the view get corrected upon a further resize?

kdinev avatar Dec 10 '19 12:12 kdinev

@kdinev After resizing column, if row height becomes changed, rows are rendered correctly. Please see the updated gif file. I also updated the steps to reproduce the issue more easily.

ymita avatar Dec 11 '19 04:12 ymita

@ymita Upon scroll, the correct number of rows should also get rendered after the issue appears. We try to prevent an excessive number of change detection calls to achieve optimal performance of the grid. As far as I can see, the issue hits an edge case change detection remains one cycle behind, but would be ran upon the next interaction. I'm marking this as low. We will take a look at it, but if the fix is too risky to hurts the general performance, then we would prefer to not implement it.

kdinev avatar Dec 11 '19 08:12 kdinev