guy 4 years ago
parent
commit
2005071c08
  1. 6
      src/widget/datepane/datepane.js
  2. 2
      src/widget/datetimepane/datetimepane.js

6
src/widget/datepane/datepane.js

@ -4,7 +4,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
baseCls: "bi-dynamic-date-pane", baseCls: "bi-dynamic-date-pane",
minDate: "1900-01-01", minDate: "1900-01-01",
maxDate: "2099-12-31", maxDate: "2099-12-31",
supportDynamic: true, supportDynamic: true
}, },
render: function () { render: function () {
@ -55,7 +55,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
self.switcher = this; self.switcher = this;
} }
}, },
height: 30 height: o.supportDynamic ? 30 : 0
}, { }, {
type: "bi.tab", type: "bi.tab",
ref: function () { ref: function () {
@ -94,7 +94,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
listeners: [{ listeners: [{
eventName: "EVENT_CHANGE", eventName: "EVENT_CHANGE",
action: function () { action: function () {
if(self._checkValue(self.getValue())) { if (self._checkValue(self.getValue())) {
self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE); self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
} }
} }

2
src/widget/datetimepane/datetimepane.js

@ -55,7 +55,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
self.switcher = this; self.switcher = this;
} }
}, },
height: 30 height: o.supportDynamic ? 30 : 0
}, { }, {
type: "bi.tab", type: "bi.tab",
ref: function () { ref: function () {

Loading…
Cancel
Save