Edit Mode Expanded

Edit Mode Expanded

662k Downloads

Resize doesn't update position in the variables

teelolws opened this issue ยท 2 comments

commented

@Etern213

Eg: resizable totem frame, before I make any changes, here it is sitting by the portrait frame:
image

I set it to 200%:
image

/reload and its gone out of bounds, been moved to the top left:
image

If I then manually move it, it saves the resized position into the variables and persists after a /reload
image
image

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.

commented

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

commented

Cool, that worked!