Label wordwrap does not honor container MaxWidth #15785
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
fixed-in-7.0.96
Look for this fix in 7.0.96 SR8!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.7.8842
Look for this fix in 8.0.0-preview.7.8842!
layout-grid
legacy-area-controls
Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Milestone
Description
PR #15022 fixes MaxRequestWidth and MaxRequestHeight and works mostly great! However, it seems a Label with WordWrap inside a container such as a Grid with MaximumWidthRequest, does not play along.
Steps to Reproduce
Consider the following XAML:
On iOS (and MacOS) in portrait this looks fine (enforced by device width):
In landscape things fall apart:
On Android the behavior is exactly the opposite. Portrait mode doesn't look great:
Landscape mode is fine:
Link to public reproduction project repository
https://github.com/zwikk/maui-playground/tree/main/Source/MauiNet8Test
Version with bug
8.0.0-preview.5.8529
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, macOS, I was not able test on other platforms
Affected platform versions
iOS 16, Android, MacOS
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: