mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Handle window offsets for DOM content positioning
This commit is contained in:
parent
6fcd817e96
commit
17839fefe7
1 changed files with 5 additions and 1 deletions
|
|
@ -99,7 +99,11 @@ const kpxcUI = {};
|
|||
kpxcUI.mouseDown = false;
|
||||
|
||||
if (document.body) {
|
||||
kpxcUI.bodyRect = document.body.getBoundingClientRect();
|
||||
const bodyRect = document.body.getBoundingClientRect();
|
||||
kpxcUI.bodyRect = {
|
||||
left: bodyRect.left + window.pageXOffset,
|
||||
top: bodyRect.top + window.pageYOffset
|
||||
};
|
||||
kpxcUI.bodyStyle = getComputedStyle(document.body);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue