diff options
Diffstat (limited to 'ext/js/dom')
-rw-r--r-- | ext/js/dom/document-util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/dom/document-util.js b/ext/js/dom/document-util.js index 0338d452..8c7adf2c 100644 --- a/ext/js/dom/document-util.js +++ b/ext/js/dom/document-util.js @@ -408,7 +408,7 @@ class DocumentUtil { this._setImposterStyle(imposterStyle, 'width', `${width}px`); this._setImposterStyle(imposterStyle, 'height', `${height}px`); } - if (imposterRect.x !== elementRect.x || imposterRect.y !== elementRect.y) { + if (imposterRect.left !== elementRect.left || imposterRect.top !== elementRect.top) { left += (elementRect.left - imposterRect.left); top += (elementRect.top - imposterRect.top); this._setImposterStyle(imposterStyle, 'left', `${left}px`); |