Fixed prompts's vertical centering altered by fit-to-content algorithm error (thanks barbaz for report).
This commit is contained in:
parent
dc82f62325
commit
7943e8f862
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue