1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-03-19 15:18:44 +08:00
parent 13a9429bd5
commit e7b7f8a968

View File

@ -493,7 +493,7 @@ Volcanos(chat.ONLAYOUT, {_init: function(can, target) { target = target||can._ro
can.page.style(can, target, html.MAX_HEIGHT, layout.top-top-(rect.bottom-rect.top))
layout.top = layout.top-target.offsetHeight-(rect.bottom-rect.top)
} else {
can.page.style(can, target, html.MAX_HEIGHT, max? height*max: top+height-layout.top)
if (!right) { can.page.style(can, target, html.MAX_HEIGHT, max? height*max: top+height-layout.top) }
// can.page.style(can, target, html.MAX_HEIGHT, top+height-layout.top)
if (layout.top+target.offsetHeight > top+height) { layout.top = top+height-target.offsetHeight }
}