From 83dc71cc287895a2335ff99bb7932dc317a644b7 Mon Sep 17 00:00:00 2001 From: Kira Date: Fri, 12 Aug 2022 11:31:41 +0800 Subject: [PATCH] =?UTF-8?q?JSY-21565=20fix:=20popover=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/layer/layer.popover.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/base/layer/layer.popover.js b/src/base/layer/layer.popover.js index bce738ef3..6b37e8033 100644 --- a/src/base/layer/layer.popover.js +++ b/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); }); },