Fix reader context menu positioning in RTL mode

This commit is contained in:
Martynas Bagdonas 2023-06-20 13:56:30 +03:00 committed by Dan Stillman
parent 0134ebefc2
commit 572cd3655e

View file

@ -798,6 +798,9 @@ class ReaderInstance {
let rect = this._iframe.getBoundingClientRect();
x += rect.left;
y += rect.top;
if (Zotero.rtl) {
x *= -1;
}
setTimeout(() => popup.openPopup(null, 'before_start', x, y, true));
}