Merge pull request #312 from AvaloniaUI/fix/recycled-cells-not-getting-layed-out-correctly
Fix layout bug: InvalidateMeasure the parent container as a recycled element is placed into it
This commit is contained in:
Коммит
dcfffd678d
|
@ -22,6 +22,7 @@ namespace Avalonia.Controls.Primitives
|
|||
|
||||
if (e.Parent == parent)
|
||||
{
|
||||
parent.InvalidateMeasure();
|
||||
elements.RemoveAt(i);
|
||||
return e;
|
||||
}
|
||||
|
@ -35,6 +36,7 @@ namespace Avalonia.Controls.Primitives
|
|||
|
||||
if (e.Parent is null || parentPanel is not null)
|
||||
{
|
||||
parent.InvalidateMeasure();
|
||||
parentPanel?.Children.Remove(e);
|
||||
Debug.Assert(e.Parent is null);
|
||||
elements.RemoveAt(i);
|
||||
|
|
Загрузка…
Ссылка в новой задаче