Page 1 of 1

Grid Bug

Posted: 08 Mar 2015, 16:00
by schragnasher
I think i found a bug in how grids work in 1.2. I have a setup similar to this.

            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />

        <ScrollViewer Grid.Column="0" Grid.Row="0" Height="5000">

        <StackPanel Grid.Column="0" Grid.Row="1">
            <Button Content="Save Planet" Margin="2"/>
            <Button Content="Revert Planet" Margin="2"/>
            <Button Content="Randomize Planet" Margin="2"/>

My scroll viewer is full of expanders, but for a test just set the height something silly big and it will show the problem. Normally this should show an empty cell up top and some buttons stacked at the bottom of the screen, no matter how big the ScrollView height is I should still see the buttons stacked at the bottom, but I do not. In my production code my expanders expand and push the botton out of the screen. This seems like a bug to me as content in the cell shouldn't resize the bottom cell.

Re: Grid Bug

Posted: 08 Mar 2015, 16:02
by schragnasher
If i set an explicit height for the bottom row it works fine. Seems like a layout issues with auto.

Re: Grid Bug

Posted: 09 Mar 2015, 20:06
by sfernandez
Confirmed, I was able to reproduce it.
We will take a look and fix it as soon as possible.

Thanks for reporting.