As you can see I have options for changing the position of my minimap. You can choose
the anchor ("TOP", "BOTTOM", "LEFT", etc.) and the x and y offset. However, for the min
and max values of the offsets I calculate the min and max x and y offset of the minimap
in relation to the anchor. Example:
--- Get the min x offset of the frame in relation to the UIParent or custom parent frame (if provided) at the given anchor.
--- @param frame table The actual frame to get the min x offset for.
--- @param anchor string The actual anchor to get the min x offset for.
--- @param parent table The parent frame (optional) defaults to UIParent.
That means ofcourse that whenever the "anchor" option changes the offset min and max values
in the options need to get updated. How can I make the options refresh for the offsets after the anchor changed?