summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs b/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs
index 0c3f7595..760b9b30 100644
--- a/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs
+++ b/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs
@@ -457,8 +457,8 @@ namespace Xamarin.Forms.Platform.WinRT
{
CenterOfRotationX = anchorX,
CenterOfRotationY = anchorY,
- GlobalOffsetX = translationX / scale,
- GlobalOffsetY = translationY / scale,
+ GlobalOffsetX = scale == 0 ? 0 : translationX / scale,
+ GlobalOffsetY = scale == 0 ? 0 : translationY / scale,
RotationX = -rotationX,
RotationY = -rotationY,
RotationZ = -rotation