dotnet / dotnet/maui

Layout Bounds not respected on Windows target

Open
#7,822 5 comments 0 reactions 0 assignees View on GitHub
area-layout legacy-area-controls partner platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

When placing some buttons within a Frame/StackLayout the buttons do not respect the bounds of the parent layouts. You'll see from the attached screenshots that when the window is larger the button width stretches rendering the image/text invisible. When the window is shrunk to mobile proportions the buttons come back to a normal width and the image/text is visible.

![image](https://user-images.githubusercontent.com/3860573/172426983-be2f7cb4-a65d-4df2-bf8b-d26ed5f455f6.png)
> Normal sized Window

![image](https://user-images.githubusercontent.com/3860573/172427166-e746b63d-ae17-4510-8441-1ef3d4e306bf.png)
> Mobile sized Window

### Steps to Reproduce

```xaml

```

### Version with bug

6.0 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied XAML layout on the Windows target at normal and mobile-sized window dimensions. Inspect how Frame, StackLayout, and Button bounds are measured, then verify that the buttons retain usable widths and their images and text remain visible at both sizes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.