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.16k stars 1.74k forks source link

BoxView with no dimension given in a grid is not displayed (unexpected behavior when migrating from Xamarin) #25442

Open inimirpaz opened 3 days ago

inimirpaz commented 3 days ago

Description

        <Grid RowDefinitions="*, *" ColumnDefinitions="*, Auto" RowSpacing="6">
            <BoxView Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" BackgroundColor="Black" />
            <BoxView Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" BackgroundColor="Black" />
        </Grid>

Gives different results in Xamarin vs MAUI: Image Image

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/inimirpaz/maui_issues/tree/boxview_grid_issue

Version with bug

8.0.92 SR9.2

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

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

No response

similar-issues-ai[bot] commented 3 days 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.

ninachen03 commented 3 days ago

This issue has been verified using Visual Studio 17.12.0 Preview 3(8.0.92 & 8.0.3). Can repro this issue at android platform.

kubaflo commented 3 days ago

Hi! It appears to be fixed in the NET9

iOS: Image

Android: Image

    <Grid RowDefinitions="*, *"
            ColumnDefinitions="*, Auto"
            RowSpacing="6">
        <BoxView Grid.Row="0"
                Grid.Column="0"
                Grid.ColumnSpan="2"
                BackgroundColor="Black"/>
        <BoxView Grid.Row="1"
                Grid.Column="0"
                Grid.ColumnSpan="2"
                BackgroundColor="Black"/>
    </Grid>
inimirpaz commented 3 days ago

Hello, the current latest stable version is still .NET 8 though

PureWeen commented 1 day ago

Hello, the current latest stable version is still .NET 8 though

We're not going to be releasing any more product fixes for .NET 8 at this point.

dotnet-policy-service[bot] commented 1 day ago

Hi @inimirpaz. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.

You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.