|
|
@ -99,7 +99,7 @@ BI.BubbleCombo = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createTriangle: function (direction) { |
|
|
|
_createTriangle: function (direction) { |
|
|
|
var o = this.options, pos = {}, op = {}; |
|
|
|
var self = this, o = this.options, pos = {}, op = {}; |
|
|
|
var adjustLength = this.options.adjustLength; |
|
|
|
var adjustLength = this.options.adjustLength; |
|
|
|
var offset = this.element.offset(); |
|
|
|
var offset = this.element.offset(); |
|
|
|
var left = offset.left, right = offset.left + this.element.outerWidth(); |
|
|
|
var left = offset.left, right = offset.left + this.element.outerWidth(); |
|
|
@ -151,11 +151,14 @@ BI.BubbleCombo = BI.inherit(BI.Widget, { |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
pos.el = this.triangle; |
|
|
|
pos.el = this.triangle; |
|
|
|
|
|
|
|
// 动画结束后再画三角
|
|
|
|
|
|
|
|
setTimeout(function () { |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
element: self, |
|
|
|
items: [pos] |
|
|
|
items: [pos] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}, 200); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createLeftTriangle: function () { |
|
|
|
_createLeftTriangle: function () { |
|
|
|