#22359·Avalonia

Popup With PointerPlacement repositions to current pointer position when resizes.

Author: emmaussCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbug

Describe the bug

When a popup opens, it repositions itself anytime it is arrange is invalidated, e.g. when its size changes. If the PlacementMode is Pointer, it will try to reposition to the pointer location on ever size change. If the pointer moves and the popup resize, the popup shifts to the new position.

https://github.com/user-attachments/assets/1525cfca-958b-42c7-b146-c9bf2dfef147

To Reproduce

  1. Add a ContextMenu with Expander content to an element.
  2. Show the context menu.
  3. Expand or collapse the Expander
  4. Popup will change position.

Expected behavior

Popup keeps its original position.

Avalonia version

12.0, 12.1.x

OS

No response

Additional context

No response