Browse Source

JSY-21565 fix: popover拖拽定位问题

es6
Kira 2 years ago
parent
commit
83dc71cc28
  1. 5
      src/base/layer/layer.popover.js

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

@ -159,9 +159,8 @@ BI.Popover = BI.inherit(BI.Widget, {
var self = this;
var o = this.options;
this.dragger.element.mousedown(function (e) {
var pos = self.element.offset();
self.startX = pos.left;
self.startY = pos.top;
self.startX = self.element[0].offsetLeft;
self.startY = self.element[0].offsetTop;
self.tracker.captureMouseMoves(e);
});
},

Loading…
Cancel
Save