|
|
@ -45,13 +45,13 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isWidthOrHeight(o.height)) { |
|
|
|
if (BI.isWidthOrHeight(o.height)) { |
|
|
|
this.element.css({ lineHeight: BI.isNumber(o.height) ? (o.height / BI.pixRatio + BI.pixUnit) : o.height }); |
|
|
|
this.element.css({lineHeight: BI.isNumber(o.height) ? (o.height / BI.pixRatio + BI.pixUnit) : o.height}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isWidthOrHeight(o.lineHeight)) { |
|
|
|
if (BI.isWidthOrHeight(o.lineHeight)) { |
|
|
|
this.element.css({ lineHeight: BI.isNumber(o.lineHeight) ? (o.lineHeight / BI.pixRatio + BI.pixUnit) : o.lineHeight }); |
|
|
|
this.element.css({lineHeight: BI.isNumber(o.lineHeight) ? (o.lineHeight / BI.pixRatio + BI.pixUnit) : o.lineHeight}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isWidthOrHeight(o.maxWidth)) { |
|
|
|
if (BI.isWidthOrHeight(o.maxWidth)) { |
|
|
|
this.element.css({ maxWidth: BI.isNumber(o.maxWidth) ? (o.maxWidth / BI.pixRatio + BI.pixUnit) : o.maxWidth }); |
|
|
|
this.element.css({maxWidth: BI.isNumber(o.maxWidth) ? (o.maxWidth / BI.pixRatio + BI.pixUnit) : o.maxWidth}); |
|
|
|
} |
|
|
|
} |
|
|
|
this.element.css({ |
|
|
|
this.element.css({ |
|
|
|
textAlign: o.textAlign, |
|
|
|
textAlign: o.textAlign, |
|
|
@ -106,7 +106,6 @@ |
|
|
|
_getShowText: function () { |
|
|
|
_getShowText: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var text = BI.isFunction(o.text) ? o.text() : o.text; |
|
|
|
var text = BI.isFunction(o.text) ? o.text() : o.text; |
|
|
|
|
|
|
|
|
|
|
|
return BI.isKey(text) ? BI.Text.formatText(text + "") : text; |
|
|
|
return BI.isKey(text) ? BI.Text.formatText(text + "") : text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|