|
|
|
@ -288,14 +288,18 @@
|
|
|
|
|
|
|
|
|
|
_initElementWidth: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if (BI.isWidthOrHeight(o.width)) { |
|
|
|
|
if (BI.isArray(o.width)) { |
|
|
|
|
this.element.css("width", BI.pixFormat(...o.width)); |
|
|
|
|
} else if (BI.isWidthOrHeight(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)) { |
|
|
|
|
if (BI.isArray(o.height)) { |
|
|
|
|
this.element.css("height", BI.pixFormat(...o.height)); |
|
|
|
|
} else if (BI.isWidthOrHeight(o.height)) { |
|
|
|
|
this.element.css("height", BI.isNumber(o.height) ? BI.pixFormat(o.height) : o.height); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|