This commit is contained in:
yumoqing 2024-10-28 16:03:42 +08:00
parent 8a59ebffc3
commit 80edde8bb6

View File

@ -248,8 +248,8 @@ var archorize = function(ele,archor){
ele.style.top = lt.top; ele.style.top = lt.top;
ele.style.left = lt.left; ele.style.left = lt.left;
var o = { var o = {
'x':x, 'x':lt.x,
'y':y 'y':lt.y
} }
var tsf = bricks.obj_fmtstr(o, 'translateY(-${y}) translateX(-${x})'); var tsf = bricks.obj_fmtstr(o, 'translateY(-${y}) translateX(-${x})');
ele.style.transform = tsf; ele.style.transform = tsf;