Skip to content

Commit af1981b

Browse files
authored
fix: Prevents the title bar of a dialog from being pulled out of the frame so that the close button always remains accessible.
fix: Prevents the title bar of a dialog from being pulled out of the frame so that the close button always remains accessible.
1 parent e90e3e5 commit af1981b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DockManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class DockManager {
156156

157157
let rect = this.element.getBoundingClientRect();
158158
let dy = Math.floor(currentMousePosition.y - previousMousePosition.y);
159-
let topBounds = container.offsetTop + dy + rect.top < 0;
159+
let topBounds = container.offsetTop + dy < 0;
160160
let bottomBounds = container.offsetTop + dy + rect.top > (window.innerHeight - 16);
161161
if (topBounds) {
162162
previousMousePosition.y = currentMousePosition.y;
@@ -899,4 +899,4 @@ export class DockManager {
899899
}
900900
}
901901
}
902-
}
902+
}

0 commit comments

Comments
 (0)