From 64bf5d15e61abfb6724ca7f2fd6c6f4ca925d785 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 25 May 2018 18:32:40 +0200 Subject: [PATCH] api: always save current position data on update --- api/api.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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