From b6ecdff7c58b378d515a3d579c5dbe8f65b31b62 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 22 Aug 2020 23:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=94=AF=E6=8C=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/colorchooser/colorchooser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/case/colorchooser/colorchooser.js b/src/case/colorchooser/colorchooser.js index 50d61bb66..c5cd1362c 100644 --- a/src/case/colorchooser/colorchooser.js +++ b/src/case/colorchooser/colorchooser.js @@ -32,8 +32,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, { ref: function (_ref) { self.trigger = _ref; }, - width: o.width - 2, - height: o.height - 2 + width: o.type ? o.width : o.width - 2, + height: o.type ? o.height : o.height - 2 }, o.el), popup: { el: BI.extend({ @@ -98,4 +98,4 @@ BI.ColorChooser = BI.inherit(BI.Widget, { } }); BI.ColorChooser.EVENT_CHANGE = "EVENT_CHANGE"; -BI.shortcut("bi.color_chooser", BI.ColorChooser); \ No newline at end of file +BI.shortcut("bi.color_chooser", BI.ColorChooser);