This commit is contained in:
yumoqing 2025-12-26 10:57:32 +08:00
parent aa95c11e2d
commit 6e8595b5d1

View File

@ -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){