|
|
@ -158,9 +158,11 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
mounted: function () { |
|
|
|
mounted: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
this.dragger.element.mousedown(function (e) { |
|
|
|
this.dragger.element.mousedown(function (e) { |
|
|
|
|
|
|
|
if (self.options.draggable !== false) { |
|
|
|
self.startX = self.element[0].offsetLeft; |
|
|
|
self.startX = self.element[0].offsetLeft; |
|
|
|
self.startY = self.element[0].offsetTop; |
|
|
|
self.startY = self.element[0].offsetTop; |
|
|
|
self.tracker.captureMouseMoves(e); |
|
|
|
self.tracker.captureMouseMoves(e); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -207,6 +209,10 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setDraggable: function (b) { |
|
|
|
|
|
|
|
this.options.draggable = b; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
hide: function () { |
|
|
|
hide: function () { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -224,9 +230,6 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
setZindex: function (zindex) { |
|
|
|
setZindex: function (zindex) { |
|
|
|
this.element.css({ "z-index": zindex }); |
|
|
|
this.element.css({ "z-index": zindex }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroyed: function () { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.popover", BI.Popover); |
|
|
|
BI.shortcut("bi.popover", BI.Popover); |
|
|
|