Browse Source

Revert "无JIRA fix: _initElementHeight和_initElementWidth方法修复"

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

4
src/core/4.widget.js

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

Loading…
Cancel
Save