Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Star columns not computed correctly when ScrollView spans across all of them #15105

Closed
pikausp opened this issue May 16, 2023 · 1 comment
Closed
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 t/bug Something isn't working

Comments

@pikausp
Copy link

pikausp commented May 16, 2023

Description

When I create a Grid with multiple star columns and put a ScrollView inside of it which spans across all of those columns, the columns don't have the appropriate width no matter the desired ratio.

<Grid RowDefinitions="Auto, *"
      ColumnDefinitions="*, 2*,3*">
    <Frame BackgroundColor="Red"/>
    <Frame BackgroundColor="Blue"
            Grid.Column="1"/>
    <ScrollView Grid.Row="1" Grid.ColumnSpan="3">
        <Frame BackgroundColor="Green"/>
    </ScrollView>
</Grid>

Produces the following
image

Whereas leaving out one column (reducing the ColumnSpan to 2) displays a layout I would expect
image

Steps to Reproduce

See the description/repo

Link to public reproduction project repository

https://github.com/pikausp/GridStarColumnRepro

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13

Did you find any workaround?

No response

Relevant log output

No response

@pikausp pikausp added the t/bug Something isn't working label May 16, 2023
@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 16, 2023
@mattleibow
Copy link
Member

This is fixed now in .NET 7 and .NET 8

image

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants