Browse Source

Merge pull request #3842 from sdoroff/fix-datagrid-rowsize-bug-3687

Fix DataGrid RowSize Bug #3687
pull/3846/head
Steven Kirk 6 years ago
committed by GitHub
parent
commit
9a600322ed
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs

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

@ -269,6 +269,9 @@ namespace Avalonia.Controls.Primitives
// Since we didn't know the final widths of the columns until we resized, // Since we didn't know the final widths of the columns until we resized,
// we waited until now to measure each cell // we waited until now to measure each cell
double leftEdge = 0; double leftEdge = 0;
if (autoSizeHeight)
DesiredHeight = 0;
foreach (DataGridColumn column in OwningGrid.ColumnsInternal.GetVisibleColumns()) foreach (DataGridColumn column in OwningGrid.ColumnsInternal.GetVisibleColumns())
{ {
DataGridCell cell = OwningRow.Cells[column.Index]; DataGridCell cell = OwningRow.Cells[column.Index];

Loading…
Cancel
Save