From c233f75a137bf09e6e7816c097e901a23466c781 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 22 Apr 2024 15:47:53 +0800 Subject: [PATCH] add some --- proto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto.js b/proto.js index 8d232067..a08dcab3 100644 --- a/proto.js +++ b/proto.js @@ -112,7 +112,7 @@ var Volcanos = shy({iceberg: "", volcano: "", frame: chat.FRAME_JS, _cache: {}, ConfSpace: function() { return can.Conf("_space")||can.Conf(web.SPACE)||"" }, ConfIndex: function() { return can.Conf("_command")||can.Conf(ctx.INDEX)||can.Conf("_index") }, ConfHeight: function(value) { return can.Conf(html.HEIGHT, value) }, - ConfWidth: function(value) { return can.Conf(html.WIDTH, value) }, + ConfWidth: function(value) { return can.Conf(html.WIDTH, value)||can._output.offsetWidth }, Conf: function(key, value) { var res = can._conf for (var i = 0; i < arguments.length; i += 2) { if (typeof key == code.OBJECT) { res = can.core.Value(can._conf, arguments[i]), i--; continue }