mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix reader context menu positioning in RTL mode
This commit is contained in:
parent
0134ebefc2
commit
572cd3655e
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue