1
0
mirror of https://shylinux.com/x/volcanos synced 2025-07-02 04:21:19 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-12-31 15:46:04 +08:00
parent 6313d57ff6
commit 4d9d3a6bda
2 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,7 @@ Volcanos(chat.ONIMPORT, {
})
}) },
layout: function(can) {
if (can.Conf(ctx.STYLE) == html.OUTPUT) { return can.page.style(can, can.ui.content, html.WIDTH, (can.Conf("_width")||can.ConfWidth())-(can.user.isMobile? 3: 5)) }
if (can.Conf(ctx.STYLE) == html.OUTPUT) { return can.page.style(can, can.ui.content, html.WIDTH, (can.Conf("__width")||can.ConfWidth())-(can.user.isMobile? 4: 2)) }
if (can.isSimpleMode() && !can.page.tagis(can._fields, html.FIELDSET_FLOAT)) { can.page.style(can, can._output, html.MAX_HEIGHT, "") }
if (can.isSimpleMode()) { can.ui.layout(can.ConfHeight(), can.ConfWidth()); return can.page.style(can, can.ui.content, html.WIDTH, can.ConfWidth()) }
if (can.isCmdMode()) { can.page.style(can, can._output, html.HEIGHT, can.ConfHeight(can.page.height())) }

View File

@ -80,6 +80,7 @@ Volcanos(chat.ONIMPORT, {
var height = can.base.Max(html.STORY_HEIGHT, can.ConfHeight()-4*html.ACTION_HEIGHT-2*padding), width = item.width||can.ConfWidth()-2*padding
can.core.Item(item, function(key, value) { if (can.base.beginWith(key, "meta.")) { can.core.Value(item, key, value), delete(item[key]) } })
can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub])
can.user.isMobile || sub.Conf("__width", item.width)
can.core.Value(item, "auto.cmd") && can.onmotion.delay(function() { sub.runAction(sub.request({}, can.core.Value(item, "opts")), can.core.Value(item, "auto.cmd")) })
var size = sub.onimport.size; sub.onimport.size = function(can, height, width, auto, mode) { size(can, height, width, auto, mode)
can.page.style(can, sub._output, html.MAX_HEIGHT, "", "overflow-y", "hidden")