mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapPanel.cs
This commit is contained in:
parent
3b17e816dd
commit
7a9cd455b2
|
|
@ -214,10 +214,8 @@ namespace MapControl
|
||||||
if (GetAutoCollapse(element))
|
if (GetAutoCollapse(element))
|
||||||
{
|
{
|
||||||
if (position.HasValue &&
|
if (position.HasValue &&
|
||||||
(position.Value.X < 0d ||
|
(position.Value.X < 0d || position.Value.X > parentMap.RenderSize.Width ||
|
||||||
position.Value.Y < 0d ||
|
position.Value.Y < 0d || position.Value.Y > parentMap.RenderSize.Height))
|
||||||
position.Value.X > parentMap.RenderSize.Width ||
|
|
||||||
position.Value.Y > parentMap.RenderSize.Height))
|
|
||||||
{
|
{
|
||||||
element.SetValue(VisibilityProperty, Visibility.Collapsed);
|
element.SetValue(VisibilityProperty, Visibility.Collapsed);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue