maui icon indicating copy to clipboard operation
maui copied to clipboard

RoundRectangle on Grid Column set to Auto... Slowly stretches the Grid column

Open pierre01 opened this issue 1 year ago • 2 comments

Description

RoundRectangle on Grid Column set to Auto... Slowly stretches the grid column To verify Comment out RoundRectangle set on Column 2 and uncomment Rectangle:

        <Grid

            Background="LightPink"
            ColumnDefinitions="1*,50,Auto,3*,1*"
            ColumnSpacing="2" HeightRequest="300">
            <RoundRectangle
                CornerRadius="6" Fill="Red"
                HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand" />
            <RoundRectangle
                Grid.Column="1" CornerRadius="6"
                Fill="Red" HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand" />
            <RoundRectangle
                Grid.Column="2" CornerRadius="6"
                Fill="blue" 
                 />
            <!--<Rectangle
                Grid.Column="2" 
                Fill="blue" 
                 />-->
            <RoundRectangle
                Grid.Column="3" CornerRadius="6"
                Fill="Red" HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand" />
            <RoundRectangle
                Grid.Column="4" CornerRadius="6"
                Fill="Red" HorizontalOptions="FillAndExpand"
                VerticalOptions="FillAndExpand" />

        </Grid>

Steps to Reproduce

RoundRectangle on Grid Column set to Auto... Slowly stretches the Grid column

Link to public reproduction project repository

https://github.com/pierre01/MAuiAutoGridTest)

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.101

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

Use rectangle instead

Relevant log output

No response

pierre01 avatar Apr 10 '24 07:04 pierre01

RoundRect

pierre01 avatar Apr 10 '24 08:04 pierre01

Can repro this issue on the latest 17.10.0 Preview 3(8.0.20), but can't repro on 8.0.0-rc.2.9530.

RoiChen001 avatar Apr 10 '24 08:04 RoiChen001

Cannot reproduce on main (> 8.0.40): issue-21746

jsuarezruiz avatar May 21 '24 07:05 jsuarezruiz