summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs
new file mode 100644
index 00000000..c4658a5f
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2594.cs
@@ -0,0 +1,33 @@
+´╗┐using Xamarin.Forms.CustomAttributes;
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 2594, "StackLayout produces overlapping layouts on some phones with specific screen sizes", PlatformAffected.Android | PlatformAffected.iOS | PlatformAffected.WinPhone)]
+ public class Issue2594 : ContentPage
+ {
+ public Issue2594 ()
+ {
+ var layout = new StackLayout {
+ Children = {
+ new StackLayout {
+ BackgroundColor = Color.Red,
+ Orientation = StackOrientation.Horizontal,
+ Children = {
+ new StackLayout {
+ BackgroundColor = Color.Gray,
+ Children = {
+ new Label {Text = "LONG TEXT. LONG TEXT. LONG TEXT. LONG TEXT. LONG TEXT.", TextColor = Color.Olive},
+ }
+ },
+ new Label {Text = "Some other text"}
+ }
+ },
+ new Label {Text = "Overlapped text.", TextColor = Color.Red}
+ }
+ };
+
+ Padding = new Thickness (0, 20, 0, 0);
+ Content = layout;
+ }
+ }
+} \ No newline at end of file