Fixed prompts's vertical centering altered by fit-to-content algorithm error (thanks barbaz for report).

This commit is contained in:
hackademix 2022-11-20 21:48:29 +01:00
parent dc82f62325
commit 7943e8f862
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@
let delta = document.documentElement.offsetHeight - window.innerHeight;
await browser.windows.update(win.id, {
height: win.height + delta,
top: win.top + Math.round(delta / 2),
top: win.top - Math.round(delta / 2),
focused: false
});
await browser.windows.update(win.id, {focused: true});