diff --git a/src/base/single/tip/tip.js b/src/base/single/tip/tip.js index 75e7f7d06..c792b91b3 100644 --- a/src/base/single/tip/tip.js +++ b/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 diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index f319d12d5..22c72ace0 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/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 }); }