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
Add a link
Reference in a new issue