diff --git a/api/api.lua b/api/api.lua index c2bd500e..12f2c534 100644 --- a/api/api.lua +++ b/api/api.lua @@ -479,12 +479,10 @@ function pfUI.api.UpdateMovable(frame) table.insert(pfUI.movables, name) end - if not frame.posdata then - frame.posdata = { scale = frame:GetScale(), pos = {} } - - for i=1,frame:GetNumPoints() do - frame.posdata.pos[i] = { frame:GetPoint(i) } - end + -- update position data + frame.posdata = { scale = frame:GetScale(), pos = {} } + for i=1,frame:GetNumPoints() do + frame.posdata.pos[i] = { frame:GetPoint(i) } end if pfUI_config["position"][frame:GetName()] then