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
22.25k stars 1.76k forks source link

Nested FlexLayout not working #26013

Open mikeysouthwell opened 2 hours ago

mikeysouthwell commented 2 hours ago

Description

Why does the content inside a child FlexLayout not display anything in MAUI?

<FlexLayout
<!-- Grandparent FlexLayout arranges children vertically -->
    Direction="Column"
    AlignItems="Start"
    BackgroundColor="Blue">

    <FlexLayout
    <!-- Parent FlexLayout arranges its children vertically -->
        Direction="Column"
        AlignItems="Start"
        BackgroundColor="Yellow">

        <FlexLayout
        <!-- Child FlexLayout arranges its children horizontally -->
            Direction="Row"
            AlignItems="Start"
            BackgroundColor="Grey">

            <Label Text="Grandchild Item 1" 
                   TextColor="Black" 
                   FontSize="18"/>

            <Label Text="Grandchild Item 2" 
                   TextColor="Black" 
                   FontSize="18"/>

        </FlexLayout>

    </FlexLayout>

</FlexLayout>

### Steps to Reproduce

_No response_

### Link to public reproduction project repository

_No response_

### Version with bug

9.0.10 SR1

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell
similar-issues-ai[bot] commented 2 hours ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

Zhanglirong-Winnie commented 19 minutes ago

This issue has been verified using Visual Studio 17.13 Preview 1(9.0.10 & 8.0.100). Can repro this issue on Android platform.