From 4f5b1e65aabb2989604f8c28a1c947c6581b428d Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 31 Dec 2021 16:37:13 +0800 Subject: [PATCH] BUG 26289 --- packages/wechat/AppAddressBook/components/List.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/wechat/AppAddressBook/components/List.vue b/packages/wechat/AppAddressBook/components/List.vue index e82ec6fc..4dc2057a 100644 --- a/packages/wechat/AppAddressBook/components/List.vue +++ b/packages/wechat/AppAddressBook/components/List.vue @@ -299,9 +299,12 @@ export default { nodeContextmenu(e, node) { this.isShowMenu = true + let y = e.y + 6 + if (y + 202 > document.body.clientHeight) { + y = y - 202 + } this.menuInfo = { - x: e.x + 16, - y: e.y + 6, + x: e.x + 16, y, node } },