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, {
_defaultConfig: function () {
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments);
var conf = BI.Tip.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
_baseCls: (conf._baseCls || "") + " bi-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,
items: BI.map(texts, function (i, text) {
return {
type: "bi.label",
type: "bi.text",
textAlign: "left",
whiteSpace: "normal",
text: text,
textHeight: 18
height: 18
};
})
});
} else {
this.text = BI.createWidget({
type: "bi.label",
type: "bi.text",
element: this,
textAlign: "left",
whiteSpace: "normal",
text: o.text,
textHeight: 16,
height: 16,
hgap: this._const.hgap
});
}

Loading…
Cancel
Save