diff --git a/src/base/single/tip/tip.tooltip.js b/src/base/single/tip/tip.tooltip.js index 0357530e8..70c710497 100644 --- a/src/base/single/tip/tip.tooltip.js +++ b/src/base/single/tip/tip.tooltip.js @@ -25,12 +25,10 @@ BI.Tooltip = BI.inherit(BI.Tip, { render: function () { var o = this.options; this.element.addClass("tooltip-" + o.level); - function fn(e) { o.stopPropagation && e.stopPropagation(); o.stopEvent && e.stopEvent(); } - this.element.bind({ click: fn, mousedown: fn, @@ -50,7 +48,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { innerVgap: this._const.vgap, items: BI.map(texts, function (i, text) { return { - type: "bi.text", + type: "bi.label", textAlign: o.textAlign, whiteSpace: "normal", text: text, @@ -60,7 +58,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { }); } else { this.text = BI.createWidget({ - type: "bi.text", + type: "bi.label", element: this, textAlign: o.textAlign, whiteSpace: "normal",