Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Popup on iOS doesn't respect VerticalStackLayout padding at the bottom of the layout

Open CliffAgius opened this issue 1 year ago • 1 comments

Converting to an Issue as this looks like a Bug rather than a Discussion.

Discussed in https://github.com/CommunityToolkit/Maui/discussions/2156

Originally posted by JRosanowski August 27, 2024 Has anyone else come across this? I've got a VerticalStackLayout with padding of 16, and buttons at the bottom of the layout. On Android there's padding below the buttons. On iOS there isn't.

CliffAgius avatar Sep 03 '24 12:09 CliffAgius

I tested it with the layout below. It's a very simple layout.

<mkt:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:mkt="clr-namespace:CommunityToolkit.Maui.Views;assembly=CommunityToolkit.Maui"
             x:Class="CommunityToolkitTest.Popups.TestPopup">
    <VerticalStackLayout Padding="5,5,5,20">
        <Label FontSize="20" TextColor="Black" Text="This is test." />
        <Button FontSize="20" TextColor="White" BackgroundColor="Blue" Text="Start" />
    </VerticalStackLayout>
</mkt:Popup>

[iOS]

[Android]

In this case, the Padding appears to be working as intended.

cat0363 avatar Sep 04 '24 03:09 cat0363