Here we go again with contextmenu css tweaks. Follow Etiquette change.
This commit is contained in:
parent
fb92572f68
commit
16adb03dca
2 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ body
|
|||
.contextmenu.open_contextmenu
|
||||
{
|
||||
display: initial;
|
||||
position: fixed;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.icon,
|
||||
|
|
Loading…
Reference in a new issue