From 6af71c36de8d0bb16cc375c88ef7fa5bbd24cffc Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 13 May 2022 13:45:17 +0200 Subject: [PATCH] Fix DataGridRow resizing issue --- .../Primitives/DataGridCellsPresenter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs b/src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs index e07c933039..38d559a031 100644 --- a/src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs +++ b/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