Browse Source

无JIRA fix: _initElementHeight和_initElementWidth方法修复

es6
zsmj 2 years ago
parent
commit
95ec11b824
  1. 4
      src/core/4.widget.js

4
src/core/4.widget.js

@ -289,14 +289,14 @@
_initElementWidth: function () {
var o = this.options;
if (BI.isWidthOrHeight(o.width)) {
this.element.css("width", BI.toPix(o.width));
this.element.css("width", BI.isNumber(o.width) ? BI.pixFormat(o.width) : o.width);
}
},
_initElementHeight: function () {
var o = this.options;
if (BI.isWidthOrHeight(o.height)) {
this.element.css("height", BI.toPix(o.height));
this.element.css("height", BI.isNumber(o.height) ? BI.pixFormat(o.height) : o.height);
}
},

Loading…
Cancel
Save