Maui
Maui copied to clipboard
[BUG] Popup broken in multiple ways
Is there an existing issue for this?
- [X] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
- Simple use case: show popup with a loading indicator, wait for a second, hide the indicator and show some long text.
<Border BackgroundColor="White" x:Name="RootBorder" Padding="20">
<Border.StrokeShape>
<RoundRectangle CornerRadius="12" />
</Border.StrokeShape>
<StackLayout Orientation="Vertical">
<ActivityIndicator x:Name="LoadingActivityIndicator" WidthRequest="50" HeightRequest="50" HorizontalOptions="Center" IsRunning="true" IsVisible="true" />
<Label x:Name="LabelContent" LineBreakMode="WordWrap" />
</StackLayout>
</Border>
The result is broken:
- Word wrap does not take Border's padding into account
- Border does not completely expand
Expected Behavior
- Border expands
- Word wrap takes Border's padding into account
Steps To Reproduce
- https://github.com/czmirek/MauiPopupLabelBug
- Run
- Click "Show popup"
- Observe
Link to public reproduction project repository
https://github.com/czmirek/MauiPopupLabelBug
Environment
- .NET MAUI CommunityToolkit: 7.0.1
- OS: Android 12.1, API 32
- .NET MAUI: 8
- .NET MAUI Controls: 8.0.7
Anything else?
I did not find a workaround :(