Skip to content

Commit

Permalink
pad flyouts area down by titlebar height
Browse files Browse the repository at this point in the history
Fixes #464
  • Loading branch information
Yuki-Codes committed Jul 26, 2021
1 parent 584f8a5 commit 91bdf04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Anamnesis/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@
<!-- Drawer flyouts -->
<materialdesign:DrawerHost
x:Name="DrawerHost"
Margin="1, 28, 1, 1"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Grid.ColumnSpan="2"
Margin="1">
Grid.ColumnSpan="2">
<materialdesign:DrawerHost.RightDrawerContent>
<Grid MinWidth="64">
<ContentPresenter x:Name="DrawerRight" />
Expand Down
4 changes: 2 additions & 2 deletions Anamnesis/Styles/Drawers/ColorSelectorDrawer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@
<TextBlock Text="Standard"/>
</GroupBox.Header>

<ListBox Name="List" ItemContainerStyle="{StaticResource ListBoxItemStyle}" SelectionChanged="OnSelectionChanged" Margin="2, 0, 1, 5" HorizontalAlignment="Center">
<ListBox Name="List" ItemContainerStyle="{StaticResource ListBoxItemStyle}" SelectionChanged="OnSelectionChanged" Margin="1, 0, 1, 8" HorizontalAlignment="Center">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel x:Name="wrapPanel"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Rectangle Width="18" Height="18" Margin="1" ToolTip="{Binding Name}">
<Rectangle Width="17" Height="17" Margin="0" ToolTip="{Binding Name}">
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Color}"/>
</Rectangle.Fill>
Expand Down

0 comments on commit 91bdf04

Please sign in to comment.