Center windows
This commit is contained in:
parent
b5c3b71fc9
commit
b7097dfc91
1 changed files with 2 additions and 2 deletions
|
@ -517,8 +517,8 @@ class WindowObject {
|
||||||
windowObject.classList.add("window-object");
|
windowObject.classList.add("window-object");
|
||||||
windowObject.style.width = `calc(${w}px + 2.75em)`;
|
windowObject.style.width = `calc(${w}px + 2.75em)`;
|
||||||
windowObject.style.height = `calc(${h}px + 4.5em)`;
|
windowObject.style.height = `calc(${h}px + 4.5em)`;
|
||||||
windowObject.style.left = `calc(50vw - ${w / 2}px)`;
|
windowObject.style.left = `calc(50vw - (${w / 2}px + 1.375em))`;
|
||||||
windowObject.style.top = `calc(50vh - ${h / 2}px)`;
|
windowObject.style.top = `calc(50vh - (${h / 2}px + 2.25em))`;
|
||||||
windowObject.tabIndex = "0";
|
windowObject.tabIndex = "0";
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue