projects
/
platform
/
core
/
csapi
/
xsf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a53ccd
)
Attempt at an ActivateContextMenu implementation which will work more consistently...
author
E.Z. Hart
<hartez@gmail.com>
Tue, 21 Nov 2017 03:16:39 +0000
(20:16 -0700)
committer
E.Z. Hart
<hartez@gmail.com>
Tue, 21 Nov 2017 03:16:39 +0000
(20:16 -0700)
Xamarin.Forms.Core.UITests.Shared/Utilities/Gestures.cs
patch
|
blob
|
history
diff --git
a/Xamarin.Forms.Core.UITests.Shared/Utilities/Gestures.cs
b/Xamarin.Forms.Core.UITests.Shared/Utilities/Gestures.cs
index
f331460
..
83bc3d8
100644
(file)
--- a/
Xamarin.Forms.Core.UITests.Shared/Utilities/Gestures.cs
+++ b/
Xamarin.Forms.Core.UITests.Shared/Utilities/Gestures.cs
@@
-112,10
+112,16
@@
namespace Xamarin.Forms.Core.UITests
var element = app.WaitForElement(target);
var rect = element[0].Rect;
var appRect = app.RootViewRect();
+ var width = Math.Max(250, rect.Width);
- app.DragCoordinates(rect.X + (0.85f * appRect.Width),
+ if((rect.X + width) > appRect.Width)
+ {
+ width = appRect.Width - rect.X;
+ }
+
+ app.DragCoordinates(rect.X + (0.95f * width),
rect.CenterY,
- rect.X + (0.
25f * rect.W
idth),
+ rect.X + (0.
05f * w
idth),
rect.CenterY);
#elif __ANDROID__
app.TouchAndHold(target);