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

[Memo] Grid Measure Issue on DialogView #10

Open
muak opened this issue Aug 17, 2023 · 0 comments
Open

[Memo] Grid Measure Issue on DialogView #10

muak opened this issue Aug 17, 2023 · 0 comments

Comments

@muak
Copy link
Owner

muak commented Aug 17, 2023

The two-column layout does not seem to calculate the size correctly.

<Grid ColumnDefinitions="*,Auto"
        ColumnSpacing="0">
                                        

    <Label Grid.Column="0"
            Text="{Binding}"
            FontAttributes="Bold"
            VerticalOptions="Center"
            Margin="0,16,0,16"/>

    <Image Grid.Column="1"
            Source="dotnet_bot"
            WidthRequest="24" HeightRequest="24"
            VerticalOptions="Center"
            Margin="0,0,8,0" />

    <BoxView
        Grid.Column="0" Grid.ColumnSpan="2"
        HeightRequest="1" Color="Gray"
        VerticalOptions="End" HorizontalOptions="FillAndExpand" />
</Grid>

This can be resolved by explicitly specifying RowDefinitions="Auto".

<Grid ColumnDefinitions="*,Auto"
        RowDefinitions="Auto"
        ColumnSpacing="0">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant