From 8facac5d1988a65ced2b593e241e9262fc2651a2 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Thu, 11 May 2023 04:56:17 +0300 Subject: [PATCH] Fix margin of error window --- resources/wde.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/wde.js b/resources/wde.js index a44de3e..001dbe5 100644 --- a/resources/wde.js +++ b/resources/wde.js @@ -254,7 +254,7 @@ class WebDesktopEnvironment{ let newWindow = document.createElement("div") newWindow.setAttribute("class", "WindowFrameless") newWindow.setAttribute("windowId", "SuperUniqUUID") //TODO: - newWindow.style.cssText = "position:absolute;width:450px;height:116px; left: 50%;top: 50%;background-color:#FFFFFF;border: 1px solid #000000;box-shadow: 2px 2px 0px #000000;" + newWindow.style.cssText = "position:absolute;width:450px;height:116px; margin-left: -225px; margin-top:-58px;left: 50%;top: 50%;background-color:#FFFFFF;border: 1px solid #000000;box-shadow: 2px 2px 0px #000000;" let alertImage = document.createElement("img") alertImage.setAttribute("src", "/res/sys/wde/icons/ohno.png") @@ -406,4 +406,4 @@ class WebFS{ } return true } -} \ No newline at end of file +}