diff options
Diffstat (limited to 'ext/js/dom/popup-menu.js')
| -rw-r--r-- | ext/js/dom/popup-menu.js | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/dom/popup-menu.js b/ext/js/dom/popup-menu.js index 8a8a19ba..28bcc309 100644 --- a/ext/js/dom/popup-menu.js +++ b/ext/js/dom/popup-menu.js @@ -219,8 +219,8 @@ export class PopupMenu extends EventDispatcher {              (bottom - top) * ((-vertical + 1) * -0.5)          ); -        x = Math.max(0.0, Math.min(containerNodeRect.width - menuRect.width, x)); -        y = Math.max(0.0, Math.min(containerNodeRect.height - menuRect.height, y)); +        x = Math.max(0, Math.min(containerNodeRect.width - menuRect.width, x)); +        y = Math.max(0, Math.min(containerNodeRect.height - menuRect.height, y));          menu.style.left = `${x}px`;          menu.style.top = `${y}px`;  |