Browse Source

无JIRA任务 simple

es6
windy 2 years ago
parent
commit
55d569f896
  1. 4
      src/case/combo/textvaluecombo/combo.textvalue.js

4
src/case/combo/textvaluecombo/combo.textvalue.js

@ -18,8 +18,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
_init: function () {
var self = this, o = this.options;
BI.isNumeric(o.width) && (o.width -= 2);
BI.isNumeric(o.height) && (o.height -= 2);
BI.isNumeric(o.width) && (o.width -= (o.simple ? 0 : 2));
BI.isNumeric(o.height) && (o.height -= (o.simple ? 1 : 2));
o.value = BI.isFunction(o.value) ? this.__watch(o.value, function (context, newValue) {
self.setValue(newValue);
}) : o.value;

Loading…
Cancel
Save