Browse Source

Remove negative margin from popup hosts.

Fixes #2821.
pull/3052/head
Steven Kirk 7 years ago
parent
commit
c153cf7ca8
  1. 2
      src/Avalonia.Themes.Default/OverlayPopupHost.xaml
  2. 2
      src/Avalonia.Themes.Default/PopupRoot.xaml

2
src/Avalonia.Themes.Default/OverlayPopupHost.xaml

@ -2,7 +2,7 @@
<Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}"/>
<Setter Property="Template">
<ControlTemplate>
<VisualLayerManager IsPopup="True" Margin="-1 -1 0 0">
<VisualLayerManager IsPopup="True">
<ContentPresenter Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
ContentTemplate="{TemplateBinding ContentTemplate}"

2
src/Avalonia.Themes.Default/PopupRoot.xaml

@ -2,7 +2,7 @@
<Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}"/>
<Setter Property="Template">
<ControlTemplate>
<VisualLayerManager IsPopup="True" Margin="-1 -1 0 0">
<VisualLayerManager IsPopup="True">
<ContentPresenter Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
ContentTemplate="{TemplateBinding ContentTemplate}"

Loading…
Cancel
Save