Browse Source

Merge pull request #138036 in DEC/fineui from master to feature/x

* commit '17f9a3bdaed9e5866fa3c652eb2977a1ec60f1c5':
  JSY-21565 fix: popover拖拽定位问题
master
superman 2 years ago
parent
commit
ccb53078fd
  1. 5
      src/base/layer/layer.popover.js

5
src/base/layer/layer.popover.js

@ -158,9 +158,8 @@ 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) {
var pos = self.element.offset(); self.startX = self.element[0].offsetLeft;
self.startX = pos.left; self.startY = self.element[0].offsetTop;
self.startY = pos.top;
self.tracker.captureMouseMoves(e); self.tracker.captureMouseMoves(e);
}); });
}, },

Loading…
Cancel
Save