CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.2k stars 376 forks source link

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

Open CliffAgius opened 1 week ago

CliffAgius commented 1 week ago

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.
cat0363 commented 1 week ago

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.