From d0b24660192c6cd82e606fc0cfae1b9f41baeeb7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 26 Jul 2022 22:56:29 +0800 Subject: [PATCH] :iphone: https://github.com/siyuan-note/siyuan/issues/5519 --- app/src/menus/Menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/menus/Menu.ts b/app/src/menus/Menu.ts index af3041871..5fc8a75b4 100644 --- a/app/src/menus/Menu.ts +++ b/app/src/menus/Menu.ts @@ -41,7 +41,7 @@ export class Menu { style = `z-index:1;mix-blend-mode: normal;left:-${this.element.style.left};`; } } else if (rect.right > window.innerWidth) { - style = `z-index:1;mix-blend-mode: normal;left:${window.innerWidth - rect.width}px;`; + style = `z-index:1;mix-blend-mode: normal;left:${window.innerWidth - rect.width - this.element.offsetLeft}px;`; } if (rect.bottom > window.innerHeight) { style += `top: auto;bottom:-5px;max-height:${Math.min(rect.top, window.innerHeight * 0.4)}px`;