- schragnasher
- Posts: 33
- Joined:
Grid Bug
I think i found a bug in how grids work in 1.2. I have a setup similar to this.
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.
Code: Select all
<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>
- schragnasher
- Posts: 33
- Joined:
Re: Grid Bug
If i set an explicit height for the bottom row it works fine. Seems like a layout issues with auto.
-
sfernandez
Site Admin
- Posts: 3188
- Joined:
Re: Grid Bug
Confirmed, I was able to reproduce it.
We will take a look and fix it as soon as possible.
Thanks for reporting.
We will take a look and fix it as soon as possible.
Thanks for reporting.
Who is online
Users browsing this forum: Google [Bot] and 2 guests