Button sizing broken by .NET9 when using the Mac UI Idiom #26154
Labels
area-controls-button
Button, ImageButton
platform/macOS 🍏
macOS / Mac Catalyst
potential-regression
This issue described a possible regression on a currently supported version., verification pending
s/needs-repro
Attach a solution or code which reproduces the issue
t/bug
Something isn't working
Description
It seems like the sizing/layout of buttons has been broken by .NET 9 in Mac Catalyst, when using the Mac UI Idiom.
.NET 8 (correct):
.NET 9 (incorrect):
Adding padding does not fix the issue, as it ends up being inconsistent depending on the length of the text. For example, both of these buttons have
Padding="0,25"
, but now have inconsistent padding.Steps to Reproduce
Any buttons without an explicitly set size seem to have this issue:
Link to public reproduction project repository
No response
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
MacOS 15.1.1 (at least)
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: