From 2005071c08237ed0e24019f56a1f4a207406214c Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 7 Feb 2021 22:30:17 +0800 Subject: [PATCH] bugfix --- src/widget/datepane/datepane.js | 6 +++--- src/widget/datetimepane/datetimepane.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widget/datepane/datepane.js b/src/widget/datepane/datepane.js index 85add1b6b..f470de0d9 100644 --- a/src/widget/datepane/datepane.js +++ b/src/widget/datepane/datepane.js @@ -4,7 +4,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { baseCls: "bi-dynamic-date-pane", minDate: "1900-01-01", maxDate: "2099-12-31", - supportDynamic: true, + supportDynamic: true }, render: function () { @@ -55,7 +55,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { self.switcher = this; } }, - height: 30 + height: o.supportDynamic ? 30 : 0 }, { type: "bi.tab", ref: function () { @@ -94,7 +94,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, { listeners: [{ eventName: "EVENT_CHANGE", action: function () { - if(self._checkValue(self.getValue())) { + if (self._checkValue(self.getValue())) { self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE); } } diff --git a/src/widget/datetimepane/datetimepane.js b/src/widget/datetimepane/datetimepane.js index c96291093..61f3be8ac 100644 --- a/src/widget/datetimepane/datetimepane.js +++ b/src/widget/datetimepane/datetimepane.js @@ -55,7 +55,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, { self.switcher = this; } }, - height: 30 + height: o.supportDynamic ? 30 : 0 }, { type: "bi.tab", ref: function () {