Skip to content

Commit

Permalink
Merge pull request #273 from ElektroKill/fix/groupbox-sizing
Browse files Browse the repository at this point in the history
Use `Grid` instead of `StackPanel` in `GroupBox`
  • Loading branch information
kikipoulet authored Aug 16, 2024
2 parents 1daf5a2 + 179a457 commit 4e48828
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SukiUI/Controls/GroupBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Style Selector="suki|GroupBox">
<Setter Property="Template">
<ControlTemplate>
<StackPanel>
<Grid RowDefinitions="Auto, Auto, *">
<ContentControl Margin="0,0,0,0" Content="{TemplateBinding Header}">
<ContentControl.Styles>
<Style Selector="TextBlock">
Expand All @@ -23,12 +23,12 @@
</ContentControl.Styles>
</ContentControl>

<Border Height="1"
<Border Grid.Row="1" Height="1"
Margin="0,10,0,10"
Background="{DynamicResource SukiControlBorderBrush}"
BorderThickness="0" />
<ContentControl Content="{TemplateBinding Content}" />
</StackPanel>
<ContentControl Grid.Row="2" Content="{TemplateBinding Content}" />
</Grid>
</ControlTemplate>
</Setter>
</Style>
Expand Down

0 comments on commit 4e48828

Please sign in to comment.