From a843684da8085409a7c3157eb47fda29038b1ef7 Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 1 Jul 2024 20:44:40 +0800 Subject: [PATCH] opt some --- plugin/local/wiki/word.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/local/wiki/word.js b/plugin/local/wiki/word.js index b83154f5..3a405dc1 100644 --- a/plugin/local/wiki/word.js +++ b/plugin/local/wiki/word.js @@ -76,7 +76,10 @@ Volcanos(chat.ONIMPORT, { 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.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") } + 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") + can.onmotion.delay(can, function() { sub.sub && sub.sub.ui.content && can.page.style(can, sub.sub.ui.content, html.HEIGHT, "", "overflow-y", "hidden") }) + } sub.onimport.size(sub, height, width, true) }, can._output, target) },