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.01k stars 1.72k forks source link

FlexLayout cannot be used in ScrollView #14048

Open SF-Simon opened 1 year ago

SF-Simon commented 1 year ago

Description

On the Windows platform, As long as the height is smaller than the content, it will crash directly. (If debugging, an error will be reported)

..\obj\Debug\net7.0-windows10.0.22000.0\win10-x64\Platforms\Windows\App.g.i.cs image

Steps to Reproduce

    <ScrollView>
        <FlexLayout
            AlignContent="Center"
            AlignItems="Center"
            JustifyContent="Center"
            Wrap="Reverse">

            <Label
                BackgroundColor="Gray"
                FontSize="32"
                Text="Hello, World!" />

            <Label FontSize="18" Text="Welcome to .NET Multi-platform App UI" />
        </FlexLayout>
    </ScrollView>

Link to public reproduction project repository

https://github.com/dotnet/maui/

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows SDK 10.0.19041 and Windows SDK 10.0.22621

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.7.0 Preview 2.0. Repro on Windows 11 with below Project: 14048.zip

image

SunshineSpring666 commented 1 year ago

Same issue encountered if the SfNumericEntry is put inside a FlexLayout.

SF3969 commented 1 year ago

When will be the fix available

williambohrmann3 commented 11 months ago

Has anyone been successful with the inverse - nesting a ScrollView in a FlexLayout?