WpfGridLayout.Blazor icon indicating copy to clipboard operation
WpfGridLayout.Blazor copied to clipboard

Is the * for rows still working?

Open JohnSear opened this issue 5 years ago • 1 comments

I'm delighted to have found this - as I think I've got my head around WPF grid but not bootstrap layout :) So thanks for creating this!

I've slightly fallen at the first hurdle. I tried to use * for rows and end up with nothing being displayed. It appears to work absolutely fine for columns.

I've tried in my own project and in your test examples. I've changed the chess board version to use * instead. I was expecting it to be stretched to the entire screen. I added MinHeight="50" so that I could test that columns were working.

    <ColumnDefinitions>
            @for (var a = 1; a <= 8; a++) {
                <ColumnDefinition Width="*"/>
            }

    </ColumnDefinitions>
    <RowDefinitions>
        @for (var b = 1; b <= 8; b++) {
            <RowDefinition MinHeight="50" Height="*" />
        }
    </RowDefinitions>

I'm on the latest version of Blazor 3.2.1 and I've tested in Edge and Chrome. I'm sure I've just misunderstood something obvious!

JohnSear avatar Jul 21 '20 20:07 JohnSear

Ah - okay if I set the Grid to have a Height then it works as expected.

Maybe this isn't an issue then :)

JohnSear avatar Jul 21 '20 20:07 JohnSear