Browse Source
Merge pull request #10667 from robloo/menu-placement
Fix Menu Popup Placement
pull/10689/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
src/Avalonia.Themes.Fluent/Controls/Menu.xaml
-
src/Avalonia.Themes.Simple/Controls/Menu.xaml
|
|
|
@ -37,6 +37,7 @@ |
|
|
|
MinWidth="{Binding Bounds.Width, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
IsLightDismissEnabled="True" |
|
|
|
IsOpen="{TemplateBinding IsSubMenuOpen, Mode=TwoWay}" |
|
|
|
PlacementMode="BottomEdgeAlignedLeft" |
|
|
|
OverlayInputPassThroughElement="{Binding $parent[Menu]}"> |
|
|
|
<Border Background="{DynamicResource MenuFlyoutPresenterBackground}" |
|
|
|
BorderBrush="{DynamicResource MenuFlyoutPresenterBorderBrush}" |
|
|
|
|
|
|
|
@ -26,8 +26,8 @@ |
|
|
|
</ContentPresenter> |
|
|
|
<Popup Name="PART_Popup" |
|
|
|
IsLightDismissEnabled="True" |
|
|
|
IsOpen="{TemplateBinding IsSubMenuOpen, |
|
|
|
Mode=TwoWay}" |
|
|
|
IsOpen="{TemplateBinding IsSubMenuOpen, Mode=TwoWay}" |
|
|
|
PlacementMode="BottomEdgeAlignedLeft" |
|
|
|
OverlayInputPassThroughElement="{Binding $parent[Menu]}"> |
|
|
|
<Border Background="{DynamicResource ThemeBackgroundBrush}" |
|
|
|
BorderBrush="{DynamicResource ThemeBorderMidBrush}" |
|
|
|
|