summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@gmail.com>2016-12-07 11:53:16 -0700
committerE.Z. Hart <hartez@gmail.com>2016-12-07 11:53:16 -0700
commit3199eba80c1e25c18a89c7de457f5c5c06ac7de3 (patch)
tree090e163fac1543a5c8ff10456118b61a14eb7b5e
parent546fd2d9b082db65d5052b9dae81a5749f81ceb2 (diff)
downloadxamarin-forms-3199eba80c1e25c18a89c7de457f5c5c06ac7de3.tar.gz
xamarin-forms-3199eba80c1e25c18a89c7de457f5c5c06ac7de3.tar.bz2
xamarin-forms-3199eba80c1e25c18a89c7de457f5c5c06ac7de3.zip
Fix 41415 test (use rounding)
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41415.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41415.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41415.cs
index 52908dd8..1d098985 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41415.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41415.cs
@@ -1,4 +1,5 @@
-´╗┐using Xamarin.Forms.CustomAttributes;
+´╗┐using System;
+using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
@@ -51,8 +52,8 @@ namespace Xamarin.Forms.Controls.Issues
scrollView.Content = grid;
scrollView.Scrolled += (sender, args) =>
{
- labelx.Text = $"x: {args.ScrollX}";
- labely.Text = $"y: {args.ScrollY}";
+ labelx.Text = $"x: {(int)Math.Round(args.ScrollX)}";
+ labely.Text = $"y: {(int)Math.Round(args.ScrollY)}";
// first and second taps
if (_x == 0)