Browse Source
Merge pull request #4236 from sdoroff/datagrid-edit-sizing
Fix DataGrid row height issue
pull/4243/head
Jumar Macato
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
12 additions and
0 deletions
-
src/Avalonia.Controls.DataGrid/DataGrid.cs
-
src/Avalonia.Controls.DataGrid/DataGridRow.cs
-
src/Avalonia.Controls.DataGrid/Primitives/DataGridCellsPresenter.cs
|
|
|
@ -3920,6 +3920,8 @@ namespace Avalonia.Controls |
|
|
|
dataGridColumn: CurrentColumn, |
|
|
|
dataGridRow: EditingRow, |
|
|
|
dataGridCell: editingCell); |
|
|
|
|
|
|
|
EditingRow.InvalidateDesiredHeight(); |
|
|
|
} |
|
|
|
|
|
|
|
// We're done, so raise the CellEditEnded event
|
|
|
|
|
|
|
|
@ -767,6 +767,11 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
internal void InvalidateDesiredHeight() |
|
|
|
{ |
|
|
|
_cellsElement?.InvalidateDesiredHeight(); |
|
|
|
} |
|
|
|
|
|
|
|
internal void ResetGridLine() |
|
|
|
{ |
|
|
|
_bottomGridLine = null; |
|
|
|
|
|
|
|
@ -299,6 +299,11 @@ namespace Avalonia.Controls.Primitives |
|
|
|
DesiredHeight = 0; |
|
|
|
} |
|
|
|
|
|
|
|
internal void InvalidateDesiredHeight() |
|
|
|
{ |
|
|
|
DesiredHeight = 0; |
|
|
|
} |
|
|
|
|
|
|
|
private bool ShouldDisplayCell(DataGridColumn column, double frozenLeftEdge, double scrollingLeftEdge) |
|
|
|
{ |
|
|
|
if (!column.IsVisible) |
|
|
|
|