dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.63k stars 1.62k forks source link

Button rendering overflow issue when padding is set in StackLayout. #22075

Open Karthickmani97 opened 2 weeks ago

Karthickmani97 commented 2 weeks ago

Description

When a button is placed within a stack layout and a padding of 15 is applied, the button's rendering extends beyond the boundaries of the stack layout. This results in an undesirable visual overflow, potentially causing layout inconsistencies and user interface issues.

Steps to Reproduce

Steps to Reproduce:

  1. Download the sample attached.
  2. Run the sample.
  3. Observe the button rendering overflow issue when padding is set in the StackLayout.
image

MAUIDemo.zip

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

RoiChen001 commented 2 weeks ago

Can repro this issue at Windows platform on the latest 17.10 Preview 5(8.0.0-rc.2.9530&8.0.21).