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
- Add a
ContextMenuwithExpandercontent to an element. - Show the context menu.
- Expand or collapse the
Expander - 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
Source: AvaloniaUI/Avalonia