We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b008d9 + f35b1d7 commit 6b522b4Copy full SHA for 6b522b4
Picviewer CE+/dist.user.js
@@ -24165,6 +24165,9 @@ ImgOps | https://imgops.com/#b#`;
24165
if (top + panelRect.height > window.innerHeight - pad) {
24166
top = stageRect.top - panelRect.height - 12;
24167
}
24168
+ if (top + panelRect.height > window.innerHeight - pad || top < pad) {
24169
+ top = window.innerHeight - panelRect.height - pad;
24170
+ }
24171
left = Math.min(Math.max(pad, left), window.innerWidth - panelRect.width - pad);
24172
top = Math.min(Math.max(pad, top), window.innerHeight - panelRect.height - pad);
24173
panel.style.left = left + 'px';
0 commit comments