Resize doesn't update position in the variables
teelolws opened this issue ยท 2 comments
Eg: resizable totem frame, before I make any changes, here it is sitting by the portrait frame:
/reload and its gone out of bounds, been moved to the top left:
If I then manually move it, it saves the resized position into the variables and persists after a /reload
This was a bug I previously fixed somewhere in that getOffsetXY mess. Needs to save the position after a resize is called without moving the frame.
I found the reason.
See here https://github.com/Etern213/EditModeExpanded/blob/main/Source/libs/EditModeExpanded-1.0/EditModeExpanded-1.0.lua#L937
self
in line 937 refers to EditModeExpandedSystemSettingsDialog, not the frame we moved, So we should use self.attachedToSystem:GetRect()
not self:GetRect()
So its not function getOffsetXY
which have mistake.
@teelolws