Browse Source

Merge pull request #3052 from AvaloniaUI/fixes/2821-popup-margin

Remove negative margin from popup hosts.
pull/3056/head
danwalmsley 7 years ago
committed by GitHub
parent
commit
b5ba478e8c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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