dotnet / dotnet/maui

Grid layout bug

Open
#34,302 7 comments 2 reactions 0 assignees View on GitHub
layout-grid 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 using a Grid layout as a cell layout for my table it breaks the rendering on one line, as you can see in the image below: (look at the Run Monitor line)

Image

Even if I remove the problematic line, the rendering issue will happening on another line. (Look at Selector line)

Image

Also, the `Label.LineBreakMode` property is not being respected.
### Steps to Reproduce

1. Run this project: https://github.com/pictos/GridLayoutIssue
2. See the layout break

### Link to public reproduction project repository

https://github.com/pictos/GridLayoutIssue

### Version with bug

10.0.40

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

iOS, Android, Windows

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by running the linked pictos/GridLayoutIssue reproduction project against .NET MAUI 10.0.40 and compare the Grid cell rendering on iOS, Android, and Windows. Investigate the affected table rows and verify that Grid layouts render consistently and that Label.LineBreakMode is respected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.