fix: Fix positioning of keyboard-driven workspace context menu in RTL (#9858)

This commit is contained in:
Aaron Dodson
2026-05-11 15:29:57 -07:00
committed by GitHub
parent 0b2109262c
commit 7bbfc69ec6
+2 -2
View File
@@ -1784,8 +1784,8 @@ export class WorkspaceSvg
if (e instanceof PointerEvent) {
location = new Coordinate(e.clientX, e.clientY);
} else {
// TODO: Get the location based on the workspace cursor location
location = svgMath.wsToScreenCoordinates(this, new Coordinate(5, 5));
const x = this.RTL ? this.getWidth() - 5 : 5;
location = svgMath.wsToScreenCoordinates(this, new Coordinate(x, 5));
}
ContextMenu.show(e, menuOptions, this.RTL, this, location);