Here we go again with contextmenu css tweaks. Follow Etiquette change.

This commit is contained in:
voussoir 2022-08-03 18:41:22 -07:00
parent fb92572f68
commit 16adb03dca
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ function show_menu(event, menu)
const over_right = Math.max(0, event.clientX + menu.offsetWidth - html.clientWidth);
const over_bottom = Math.max(0, event.clientY + menu.offsetHeight - html.clientHeight);
const left = event.clientX - over_right;
const top = event.clientY - over_bottom;
const top = event.pageY - over_bottom;
menu.style.left = left + "px";
menu.style.top = top + "px";
}

View file

@ -98,7 +98,7 @@ body
.contextmenu.open_contextmenu
{
display: initial;
position: fixed;
position: absolute;
}
.icon,