From 032086531e9d3091f71203bd790587975c85c07d Mon Sep 17 00:00:00 2001 From: harveyshao Date: Mon, 11 Jul 2022 22:42:12 +0800 Subject: [PATCH] opt inner.css --- frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame.js b/frame.js index fb30373e..cca91ee3 100644 --- a/frame.js +++ b/frame.js @@ -482,7 +482,7 @@ Volcanos(chat.ONLAYOUT, {help: "页面布局", _init: function(can, target) { ta var rect = event.target == document.body? {left: window.innerWidth/2, top: 200, right: window.innerWidth/2, bottom: 200}: event.target.getBoundingClientRect() var layout = right? {left: rect.right, top: rect.top}: {left: rect.left, top: rect.bottom} can.getActionSize(function(left, top, width, height) { - if (layout.top+target.offsetHeight > top+height-html.ACTION_HEIGHT) { + if (layout.top+target.offsetHeight > top+height) { layout.top = "", layout.bottom = right? html.ACTION_HEIGHT: top+height+html.ACTION_HEIGHT-rect.top } if (layout.left+target.offsetWidth > left+width) {