Skip to content

Commit

Permalink
Update searchJumper.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hoothin committed Jul 22, 2024
1 parent 0c2f832 commit 3fc1874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions searchJumper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8404,14 +8404,14 @@
clientX -= target.clientWidth / 2;
let actualTop = clingEle.getBoundingClientRect().top;
if (actualTop > viewHeight / 2) {
if (clientY < target.clientHeight + eh / 2 + 5) {
target.style.height = clientY - 30 + "px";
if (actualTop < target.clientHeight + 10) {
target.style.height = actualTop - 20 + "px";
clientY = 5;
} else clientY -= (target.clientHeight + eh / 2 + 5);
} else {
clientY += (eh / 2 + 5);
if (clientY + target.clientHeight + 20 > viewHeight) {
target.style.height = viewHeight - clientY - 20 + "px";
if (actualTop + target.clientHeight + eh + 10 > viewHeight) {
target.style.height = viewHeight - actualTop - eh - 20 + "px";
}
}
if (clientX < 20) clientX = 20;
Expand Down

0 comments on commit 3fc1874

Please sign in to comment.