From 4335c72661c0e717ab1f323c0cd0ccac54e3a851 Mon Sep 17 00:00:00 2001 From: "Ahmad K. Bawaneh" Date: Mon, 15 Apr 2024 17:00:40 +0300 Subject: [PATCH] fix #911 Window updatePosition setWindowTop sets wrong positions --- .../src/main/java/org/dominokit/domino/ui/dialogs/Window.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domino-ui/src/main/java/org/dominokit/domino/ui/dialogs/Window.java b/domino-ui/src/main/java/org/dominokit/domino/ui/dialogs/Window.java index aa9279255..eb77a3117 100644 --- a/domino-ui/src/main/java/org/dominokit/domino/ui/dialogs/Window.java +++ b/domino-ui/src/main/java/org/dominokit/domino/ui/dialogs/Window.java @@ -202,7 +202,7 @@ private void updatePosition() { if (windowTop < (windowHeight - initialHeight)) { modalElement.element().style.top = windowTop + "px"; } else { - modalElement.element().style.left = + modalElement.element().style.top = windowTop - ((windowLeft + initialHeight) - windowHeight - DomGlobal.window.pageYOffset) + "px";