Skip to content

Commit

Permalink
Fix height.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Nov 26, 2024
1 parent 6883d1a commit 4c183f0
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down Expand Up @@ -44,7 +44,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<Image Source="{Binding ImageUrl}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
</ContentPage.BindingContext>
<StackLayout Margin="20">
<Label Text="Tap each image to dynamically change its size." />
<CarouselView ItemsSource="{Binding Monkeys}">
<CarouselView ItemsSource="{Binding Monkeys}"
Grid.Row="1">
<CarouselView.ItemTemplate>
<DataTemplate>
<StackLayout>
<Border Stroke="DarkGray"
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void OnImageTapped(object sender, EventArgs e)
Image image = sender as Image;
image.HeightRequest = image.WidthRequest = image.HeightRequest.Equals(150) ? 200 : 150;
Border border = ((Border)image.Parent.Parent);
border.HeightRequest = border.HeightRequest.Equals(340) ? 390 : 340;
border.HeightRequest = border.HeightRequest.Equals(360) ? 410 : 360;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
StrokeShape="RoundRectangle 5"
Margin="20"
Padding="20"
HeightRequest="340"
HeightRequest="360"
HorizontalOptions="Center"
VerticalOptions="Center">
<SwipeView>
Expand Down

0 comments on commit 4c183f0

Please sign in to comment.