1
0
forked from x/volcanos

opt inner.css

This commit is contained in:
harveyshao 2022-07-11 22:42:12 +08:00
parent e6c9339039
commit 032086531e

View File

@ -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) {