Center windows

This commit is contained in:
MeowcaTheoRange 2023-11-26 11:14:25 -06:00
parent b5c3b71fc9
commit b7097dfc91

View file

@ -517,8 +517,8 @@ class WindowObject {
windowObject.classList.add("window-object");
windowObject.style.width = `calc(${w}px + 2.75em)`;
windowObject.style.height = `calc(${h}px + 4.5em)`;
windowObject.style.left = `calc(50vw - ${w / 2}px)`;
windowObject.style.top = `calc(50vh - ${h / 2}px)`;
windowObject.style.left = `calc(50vw - (${w / 2}px + 1.375em))`;
windowObject.style.top = `calc(50vh - (${h / 2}px + 2.25em))`;
windowObject.tabIndex = "0";
{