summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs
new file mode 100644
index 00000000..660ad880
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla36559.cs
@@ -0,0 +1,54 @@
+´╗┐using System;
+
+using Xamarin.Forms.CustomAttributes;
+
+#if UITEST
+using Xamarin.UITest;
+using NUnit.Framework;
+#endif
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Bugzilla, 36559, "[WP] Navigating to a ContentPage with a Grid inside a TableView affects Entry heights")]
+ public class Bugzilla36559 : TestContentPage
+ {
+ protected override void Init()
+ {
+ var label = new Label { Text = "Label" };
+ var entry = new Entry { AutomationId = "entry" };
+ var grid = new Grid();
+
+ grid.Children.Add(label, 0, 0);
+ grid.Children.Add(entry, 1, 0);
+ var tableView = new TableView
+ {
+ Root = new TableRoot
+ {
+ new TableSection
+ {
+ new ViewCell
+ {
+ View = grid
+ }
+ }
+ }
+ };
+
+ Content = new StackLayout
+ {
+ Children = { tableView }
+ };
+ }
+
+#if UITEST
+ [Test]
+ public void Bugzilla36559Test()
+ {
+ RunningApp.WaitForElement(q => q.Marked("entry"));
+ var results = RunningApp.Query(q => q.Marked("entry"));
+ Assert.AreNotEqual(results[0].Rect.Height, -1);
+ }
+#endif
+ }
+}