Browse Source

无JIRA任务 fix: 多行title只显示一部分

es6
windy 5 years ago
parent
commit
22a1a70e99
  1. 2
      src/base/single/tip/tip.js
  2. 8
      src/base/single/tip/tip.tooltip.js

2
src/base/single/tip/tip.js

@ -8,7 +8,7 @@
*/ */
BI.Tip = BI.inherit(BI.Single, { BI.Tip = BI.inherit(BI.Single, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); var conf = BI.Tip.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
_baseCls: (conf._baseCls || "") + " bi-tip", _baseCls: (conf._baseCls || "") + " bi-tip",
zIndex: BI.zIndex_tip zIndex: BI.zIndex_tip

8
src/base/single/tip/tip.tooltip.js

@ -47,22 +47,22 @@ BI.Tooltip = BI.inherit(BI.Tip, {
hgap: this._const.hgap, hgap: this._const.hgap,
items: BI.map(texts, function (i, text) { items: BI.map(texts, function (i, text) {
return { return {
type: "bi.label", type: "bi.text",
textAlign: "left", textAlign: "left",
whiteSpace: "normal", whiteSpace: "normal",
text: text, text: text,
textHeight: 18 height: 18
}; };
}) })
}); });
} else { } else {
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.text",
element: this, element: this,
textAlign: "left", textAlign: "left",
whiteSpace: "normal", whiteSpace: "normal",
text: o.text, text: o.text,
textHeight: 16, height: 16,
hgap: this._const.hgap hgap: this._const.hgap
}); });
} }

Loading…
Cancel
Save