|
|
|
@ -25,10 +25,12 @@ 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, |
|
|
|
@ -48,7 +50,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
|
|
|
|
|
innerVgap: this._const.vgap, |
|
|
|
|
items: BI.map(texts, function (i, text) { |
|
|
|
|
return { |
|
|
|
|
type: "bi.label", |
|
|
|
|
type: "bi.text", |
|
|
|
|
textAlign: o.textAlign, |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
text: text, |
|
|
|
@ -58,7 +60,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
|
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.text = BI.createWidget({ |
|
|
|
|
type: "bi.label", |
|
|
|
|
type: "bi.text", |
|
|
|
|
element: this, |
|
|
|
|
textAlign: o.textAlign, |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|