diff --git a/examples/menu.html b/examples/menu.html index 6f5e5cf..bea5812 100644 --- a/examples/menu.html +++ b/examples/menu.html @@ -237,8 +237,9 @@

Settings Form

itema.forEach(el => { el.addEventListener("click", function(e) { // Set themyForm position to the click coordinates + var tt = myForm.getBoundingClientRect() myForm.style.left = e.clientX + "px"; - myForm.style.top = e.clientY + "px"; + myForm.style.top = e.clientY - tt.height + "px"; // Show themyForm myForm.style.display = "block";