Skip to content

Commit 6b522b4

Browse files
committed
Merge branch 'master' of https://github.com/hoothin/UserScripts
2 parents 8b008d9 + f35b1d7 commit 6b522b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Picviewer CE+/dist.user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24165,6 +24165,9 @@ ImgOps | https://imgops.com/#b#`;
2416524165
if (top + panelRect.height > window.innerHeight - pad) {
2416624166
top = stageRect.top - panelRect.height - 12;
2416724167
}
24168+
if (top + panelRect.height > window.innerHeight - pad || top < pad) {
24169+
top = window.innerHeight - panelRect.height - pad;
24170+
}
2416824171
left = Math.min(Math.max(pad, left), window.innerWidth - panelRect.width - pad);
2416924172
top = Math.min(Math.max(pad, top), window.innerHeight - panelRect.height - pad);
2417024173
panel.style.left = left + 'px';

0 commit comments

Comments
 (0)