Skip to content

NET 8 :: Sizing of windows, text buttons and icon buttons are off #21285

@linkaiyu

Description

@linkaiyu

Description

After upgrading to NET8.0.10 (from Net7), sizing of buttons with text and icons appears to be changed. In Net7, when a button has image and text, the image would scale when the size of button changes, but in NET8.0.10 the image would get cropped on Mac. (it is not a problem on Windows)

Steps to Reproduce

use this xaml to see the difference between Net7 and Net8.0.10 on Mac

<Button Text="Button" ImageSource="watchlist.png" MinimumWidthRequest="1" MinimumHeightRequest="1" WidthRequest="100" HeightRequest="32" BackgroundColor="Gray" Padding="11,9,0,9" />

Link to public reproduction project repository

No response

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

7.0.100

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-controls-buttonButton, ImageButtonfixed-in-8.0.90fixed-in-9.0.0-rc.2.24503.2partner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withpartner/maciosIssues for the Mac / iOS SDKplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions