瀏覽代碼

Merge pull request #3350 from AvaloniaUI/fixes/workaround-rapid-menu-issue

Workaround rapid menu open-close issue
Nikita Tsukanov 6 年之前
父節點
當前提交
cb136fbd48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs

+ 1 - 1
src/Avalonia.Controls/Primitives/PopupPositioning/IPopupPositioner.cs

@@ -306,7 +306,7 @@ namespace Avalonia.Controls.Primitives.PopupPositioning
             if (placement == PlacementMode.Pointer)
             {
                 positionerParameters.AnchorRectangle = new Rect(pointer, new Size(1, 1));
-                positionerParameters.Anchor = PopupPositioningEdge.BottomRight;
+                positionerParameters.Anchor = PopupPositioningEdge.TopLeft;
                 positionerParameters.Gravity = PopupPositioningEdge.BottomRight;
             }
             else