Ver Fonte

[Popup] opens under mouse as 0.8 release did. Prevents rapid opening and closing.

Dan Walmsley há 6 anos atrás
pai
commit
a29404c3f7

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

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