Skip to content

Commit

Permalink
Update custom.js
Browse files Browse the repository at this point in the history
Fixes the issue of windows whereby they have negative coordinates

See - lkarlslund#35
  • Loading branch information
Mozhar Alhosni authored Mar 20, 2024
1 parent 7774681 commit b8029b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/analyze/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ function newwindow(id, title, content, height, width) {
// translate when resizing from top or left edges
x += event.deltaRect.left
y += event.deltaRect.top
x = Math.max(0, x)
y = Math.max(0, y)

target.style.transform = 'translate(' + x + 'px,' + y + 'px)'

Expand Down

0 comments on commit b8029b2

Please sign in to comment.