Update MapPanel.cs

This commit is contained in:
ClemensFischer 2024-08-28 23:33:19 +02:00
parent 7b45efd33e
commit ae1baeb944

View file

@ -268,8 +268,11 @@ namespace MapControl
SetVisible(element, !IsOutsideViewport(position));
}
if (position.HasValue)
{
ArrangeElement(element, position.Value);
}
}
else
{
element.ClearValue(ViewPositionProperty);