summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.iOS/MapRenderer.cs
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-01-03 11:35:54 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-01-03 11:35:54 (GMT)
commitf003cfd3886adb85cd6dd10e8083bc82abb68234 (patch)
tree2ed2781ab7465d27f1b51e8bd3e004fe65dfbc0d /Xamarin.Forms.Maps.iOS/MapRenderer.cs
parent17cdd40d1d7159e5ea40d85dc596cb00e6db69a5 (diff)
downloadxamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.zip
xamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.tar.gz
xamarin-forms-f003cfd3886adb85cd6dd10e8083bc82abb68234.tar.bz2
[iOS/Android] Move Map camera to correct region on layout change (#548)
* Move to region on layout change * remove visibility check
Diffstat (limited to 'Xamarin.Forms.Maps.iOS/MapRenderer.cs')
-rw-r--r--Xamarin.Forms.Maps.iOS/MapRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Maps.iOS/MapRenderer.cs b/Xamarin.Forms.Maps.iOS/MapRenderer.cs
index 3f4e7eb..af1f080 100644
--- a/Xamarin.Forms.Maps.iOS/MapRenderer.cs
+++ b/Xamarin.Forms.Maps.iOS/MapRenderer.cs
@@ -190,7 +190,7 @@ namespace Xamarin.Forms.Maps.iOS
UpdateHasScrollEnabled();
else if (e.PropertyName == Map.HasZoomEnabledProperty.PropertyName)
UpdateHasZoomEnabled();
- else if (e.PropertyName == VisualElement.IsVisibleProperty.PropertyName && ((Map)Element).LastMoveToRegion != null)
+ else if (e.PropertyName == VisualElement.HeightProperty.PropertyName && ((Map)Element).LastMoveToRegion != null)
_shouldUpdateRegion = true;
}