mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Replaced Size.Empty with new Size() in MapPanel.
This commit is contained in:
parent
690c2071b1
commit
8c97d771ac
|
|
@ -232,7 +232,7 @@ namespace MapControl
|
||||||
if (!panelSize.HasValue)
|
if (!panelSize.HasValue)
|
||||||
{
|
{
|
||||||
var panel = frameworkElement.Parent as Panel;
|
var panel = frameworkElement.Parent as Panel;
|
||||||
panelSize = panel != null ? panel.RenderSize : Size.Empty;
|
panelSize = panel != null ? panel.RenderSize : new Size();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (frameworkElement.HorizontalAlignment)
|
switch (frameworkElement.HorizontalAlignment)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue