Skip to content

Commit d35b652

Browse files
Added output images.
1 parent a7eacf9 commit d35b652

23 files changed

+23
-3
lines changed
119 KB
Loading

src/Controls/tests/TestCases.HostApp/Issues/Issue28660.cs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,24 @@ public class Issue28660 : ContentPage
55
{
66
public Issue28660()
77
{
8+
Grid gridLayout = new Grid
9+
{
10+
RowDefinitions =
11+
{
12+
new RowDefinition { Height = GridLength.Auto },
13+
new RowDefinition { Height = GridLength.Auto },
14+
15+
},
16+
};
17+
818
var label = new Label()
919
{
1020
Text = "At any time, but not later than one month before the expiration date.",
1121
AutomationId = "WithoutExplicitLabelSize",
1222
FontSize = 16,
1323
};
1424

15-
VerticalStackLayout layout = new VerticalStackLayout
25+
VerticalStackLayout layoutWithExplicitWidth = new VerticalStackLayout
1626
{
1727
WidthRequest = 350,
1828
Children =
@@ -59,6 +69,13 @@ public Issue28660()
5969
FontSize = 16,
6070
AutomationId = "ExplicitLabelSize",
6171
},
72+
}
73+
};
74+
75+
VerticalStackLayout layoutWithoutExplicitWidth = new VerticalStackLayout
76+
{
77+
Children =
78+
{
6279
new Label
6380
{
6481
Text="Without explicit width and height request",
@@ -79,10 +96,13 @@ public Issue28660()
7996
}
8097
}
8198
};
82-
99+
gridLayout.SetRow(layoutWithExplicitWidth, 0);
100+
gridLayout.Children.Add(layoutWithExplicitWidth);
101+
gridLayout.SetRow(layoutWithoutExplicitWidth, 1);
102+
gridLayout.Children.Add(layoutWithoutExplicitWidth);
83103
Content = new ScrollView
84104
{
85-
Content = layout,
105+
Content = gridLayout,
86106
AutomationId = "ScrollView"
87107
};
88108
}
2.28 KB
Loading
2.25 KB
Loading
2.25 KB
Loading
2.23 KB
Loading
2.26 KB
Loading
2.2 KB
Loading
2.23 KB
Loading
2.23 KB
Loading

0 commit comments

Comments
 (0)