From 16adb03dcacfd1900c17e000b713def25ee33230 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 3 Aug 2022 18:41:22 -0700 Subject: [PATCH] Here we go again with contextmenu css tweaks. Follow Etiquette change. --- frontends/bringrss_flask/static/js/contextmenus.js | 2 +- frontends/bringrss_flask/templates/root.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/bringrss_flask/static/js/contextmenus.js b/frontends/bringrss_flask/static/js/contextmenus.js index 3f7358d..6040a75 100644 --- a/frontends/bringrss_flask/static/js/contextmenus.js +++ b/frontends/bringrss_flask/static/js/contextmenus.js @@ -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"; } diff --git a/frontends/bringrss_flask/templates/root.html b/frontends/bringrss_flask/templates/root.html index 1fc8ef9..06cebc5 100644 --- a/frontends/bringrss_flask/templates/root.html +++ b/frontends/bringrss_flask/templates/root.html @@ -98,7 +98,7 @@ body .contextmenu.open_contextmenu { display: initial; - position: fixed; + position: absolute; } .icon,