Skip to content

Commit

Permalink
fix #911 Window updatePosition setWindowTop sets wrong positions
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Apr 15, 2024
1 parent 09c5e0f commit 4335c72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4335c72

Please sign in to comment.