Browse Source

Merge pull request #8125 from timunie/fix/DataGridCellNotShrinkingIssue

Fix DataGridRow resizing issue
pull/8156/head
Max Katz 4 years ago
committed by GitHub
parent
commit
835b5c858c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs

2
src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs

@ -218,6 +218,8 @@ namespace Avalonia.Controls.Primitives
{
// No explicit height values were set so we can autosize
autoSizeHeight = true;
// We need to invalidate desired height in order to grow or shrink as needed
InvalidateDesiredHeight();
measureHeight = double.PositiveInfinity;
}
else

Loading…
Cancel
Save