diff options
Diffstat (limited to 'ext/js/app/frontend.js')
-rw-r--r-- | ext/js/app/frontend.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/app/frontend.js b/ext/js/app/frontend.js index 0d358639..bbc0ff85 100644 --- a/ext/js/app/frontend.js +++ b/ext/js/app/frontend.js @@ -543,12 +543,13 @@ class Frontend { } _showPopupContent(textSource, optionsContext, details=null) { + const {left, top, width, height} = textSource.getRect(); this._lastShowPromise = ( this._popup !== null ? this._popup.showContent( { optionsContext, - elementRect: textSource.getRect(), + elementRect: {x: left, y: top, width, height, valid: true}, writingMode: textSource.getWritingMode() }, details |