From 7a9cd455b2a0b91d9792c2d38985d754cf2e77dc Mon Sep 17 00:00:00 2001 From: ClemensF Date: Wed, 13 Jan 2021 21:30:41 +0100 Subject: [PATCH] Update MapPanel.cs --- MapControl/Shared/MapPanel.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MapControl/Shared/MapPanel.cs b/MapControl/Shared/MapPanel.cs index 8b1251c2..51dce2d4 100644 --- a/MapControl/Shared/MapPanel.cs +++ b/MapControl/Shared/MapPanel.cs @@ -214,10 +214,8 @@ namespace MapControl if (GetAutoCollapse(element)) { if (position.HasValue && - (position.Value.X < 0d || - position.Value.Y < 0d || - position.Value.X > parentMap.RenderSize.Width || - position.Value.Y > parentMap.RenderSize.Height)) + (position.Value.X < 0d || position.Value.X > parentMap.RenderSize.Width || + position.Value.Y < 0d || position.Value.Y > parentMap.RenderSize.Height)) { element.SetValue(VisibilityProperty, Visibility.Collapsed); }