From 6e8595b5d191f251c8a61c4e9ae3fc8c7ce62364 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 26 Dec 2025 10:57:32 +0800 Subject: [PATCH] bugfix --- bricks/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/popup.js b/bricks/popup.js index 3e2d56a..f06f2c6 100644 --- a/bricks/popup.js +++ b/bricks/popup.js @@ -180,8 +180,8 @@ bricks.Popup = class extends bricks.VBox { positify_tl(){ var rect, w, h, t, l; if (this.opts.eventpos && this.opts.origin_event){ - this.set_style('top', this.origin_event.offsetY + 'px'); - this.set_style('left', this.origin_event.offsetX + 'px'); + this.set_style('top', this.origin_event.clientY + 'px'); + this.set_style('left', this.origin_event.clientX + 'px'); return; } if (this.top && this.left){