schragnasher
Topic Author
Posts: 33
Joined: 07 Mar 2015, 01:58

Grid Bug

08 Mar 2015, 16:00

I think i found a bug in how grids work in 1.2. I have a setup similar to this.
<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:spiff="clr-namespace:Spiff.ViewModels">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

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

        <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"/>
        </StackPanel>

    </Grid>
</Page>
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.
 
schragnasher
Topic Author
Posts: 33
Joined: 07 Mar 2015, 01:58

Re: Grid Bug

08 Mar 2015, 16:02

If i set an explicit height for the bottom row it works fine. Seems like a layout issues with auto.
 
User avatar
sfernandez
Site Admin
Posts: 2997
Joined: 22 Dec 2011, 19:20

Re: Grid Bug

09 Mar 2015, 20:06

Confirmed, I was able to reproduce it.
We will take a look and fix it as soon as possible.

Thanks for reporting.

Who is online

Users browsing this forum: Ahrefs [Bot] and 22 guests