Allow the user to set anchor point
Opened this issue · 1 comments
I often run into the situation that LibMovable picks a different anchor point (e.g. UIParent:BOTTOM
) than I would like (e.g. UIParent:BOTTOMLEFT
). While I can set the relative anchor target in code, there is no way for me to change the automatically selected anchor point.
I suppose the small green squares on the draggable overlays indicate which corner/side is used for anchoring. Making those clickable to allow overriding the used anchor point would be great.
Use case: I have some icons that I display for every character that needs them. The number of icons varies. I'd like to anchor them all so their left edge is always at the same point. However, since the container they're in is pretty close to the center of the screen, it always ends up centering itself, so I have to adjust the position whenever I change characters (or use per-character location settings which I tried to avoid ;)).
I do know if it feasible. The anchor point is automatically selected by Blizzard code. LibMovable-1.0 only shows it.