mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 23:15:14 +00:00
Update MapPanel.cs
This commit is contained in:
parent
3b17e816dd
commit
7a9cd455b2
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue