summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2016-11-16 06:43:30 -0600
committerStephane Delcroix <stephane@delcroix.org>2016-11-16 13:43:30 +0100
commit85b349c380f18f722f484b50f285061d25fb1db6 (patch)
tree0bf5f7cffa42c1f49c59a26bd12d7fb9e66f3888 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared
parent98235e0eea8b540ac10a71b97ee08a5842abd664 (diff)
downloadxamarin-forms-85b349c380f18f722f484b50f285061d25fb1db6.tar.gz
xamarin-forms-85b349c380f18f722f484b50f285061d25fb1db6.tar.bz2
xamarin-forms-85b349c380f18f722f484b50f285061d25fb1db6.zip
[A] Check for parent NavigationPage when setting MDP detail's TopPadding (#473)
rebased
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs56
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems3
2 files changed, 58 insertions, 1 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs
new file mode 100644
index 00000000..1042230f
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44476.cs
@@ -0,0 +1,56 @@
+using Xamarin.Forms.CustomAttributes;
+using Xamarin.Forms.Internals;
+
+#if UITEST
+using Xamarin.UITest;
+using NUnit.Framework;
+#endif
+
+namespace Xamarin.Forms.Controls.Issues
+{
+ [Preserve(AllMembers = true)]
+ [Issue(IssueTracker.Bugzilla, 44476, "[Android] Unwanted margin at top of details page when nested in a NavigationPage")]
+ public class Bugzilla44476 : TestNavigationPage
+ {
+ protected override void Init()
+ {
+ BackgroundColor = Color.Maroon;
+
+ PushAsync(new MasterDetailPage
+ {
+ Title = "Bugzilla Issue 44476",
+ Master = new ContentPage
+ {
+ Title = "Master",
+ Content = new StackLayout
+ {
+ Children =
+ {
+ new Label { Text = "Master" }
+ }
+ }
+ },
+ Detail = new ContentPage
+ {
+ Title = "Detail",
+ Content = new StackLayout
+ {
+ VerticalOptions = LayoutOptions.FillAndExpand,
+ Children =
+ {
+ new Label { Text = "Detail Page" },
+ new StackLayout
+ {
+ VerticalOptions = LayoutOptions.EndAndExpand,
+ Children =
+ {
+ new Label { Text = "This should be visible." }
+ }
+ }
+ }
+ }
+ },
+ });
+ }
+ }
+} \ No newline at end of file
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
index d887d5c3..88ea2c40 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
@@ -137,6 +137,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla44338.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla45743.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla46494.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44476.cs" />
<Compile Include="$(MSBuildThisFileDirectory)CarouselAsync.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla34561.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla34727.cs" />
@@ -598,4 +599,4 @@
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
-</Project> \ No newline at end of file
+</Project>