Pane menu opens in the wrong place

Steps to reproduce

Create a plugin.
Create a View
implement onPaneMenu or onMoreOptionsMenu
menu.showAtPosition({ x: 0, y: 0 })

Expected result

Previously, this showed the menu next to the “More options” button when clicking it.

Actual result

With no change to the code, this now opens the menu in the top left corner of the window. There appears to be no way to get the coordinates of the click event or the button.


Obsidian version: v1.1.16
Installer version: v1.1.9
Operating system: Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 20.6.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Mindmap NextGen v1.8.1

Additional information