From 741bf23c81b5e14bc5a45584829613fa36a76e8c Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 27 Mar 2024 08:46:12 +0800 Subject: [PATCH] add some --- plugin/state.js | 4 ++-- plugin/story/pie.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/state.js b/plugin/state.js index a7eeee2f..641b9116 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -93,8 +93,8 @@ Volcanos(chat.ONIMPORT, { size: function(can, height, width, auto, mode) { var margin = (can.Conf("margin")||0)*2 can.Conf("_auto", auto), can.Mode(mode), can.ConfHeight(height), can.ConfWidth(width), height -= can.onexport.actionHeight(can)+can.onexport.statusHeight(can) - // height -= margin - width -= margin + // height -= 2*margin + width -= 2*margin auto || auto == undefined? (can.page.style(can, can._output, html.HEIGHT, "", html.WIDTH, "", html.MAX_HEIGHT, height, html.MAX_WIDTH, width), can.page.style(can, can._target, html.HEIGHT, "", html.WIDTH, "")): (can.page.style(can, can._output, html.HEIGHT, height, html.WIDTH, width, html.MAX_HEIGHT, "", html.MAX_WIDTH, ""), can.page.style(can, can._target, html.WIDTH, width)) if (can.misc.Search(can, log.DEBUG) == ice.TRUE) { can.Status(html.HEIGHT, can.base.Max(height, can._output.offsetHeight), html.WIDTH, width) } diff --git a/plugin/story/pie.js b/plugin/story/pie.js index d881cd34..35c13648 100644 --- a/plugin/story/pie.js +++ b/plugin/story/pie.js @@ -39,6 +39,6 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb) { can.page.requireDraw(ca can.ui.svg.Val(html.HEIGHT, height-2*padding), can.ui.svg.Val(html.WIDTH, height-2*padding) // can.page.style(can, can.ui.display, html.HEIGHT, can.ConfHeight()-can.ui.svg.Val(html.HEIGHT)) can.page.style(can, can.ui.display, html.WIDTH, can.ConfWidth()-height) - can._draw = function(which) { can.onimport._draw(can, height/2-padding-10, can.ConfHeight()/2-padding-10, r, margin, which) }, can._draw(0) + can._draw = function(which) { can.onimport._draw(can, height/2-2*padding, can.ConfHeight()/2, r, margin, which) }, can._draw(0) }, })