From 6e9f1d6b89a80a40cf900870d4520d890f083a06 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 8 Jul 2025 21:49:10 +0200 Subject: [PATCH] api: ignore and skip invalid frame anchors --- api/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/api/api.lua b/api/api.lua index 052c42c0..e4a94402 100644 --- a/api/api.lua +++ b/api/api.lua @@ -715,6 +715,7 @@ end -- 'position' [string] where it should appear, takes the following: -- "TOP", "RIGHT", "BOTTOM", "LEFT" function pfUI.api.AlignToPosition(frame, anchor, position, spacing) + if frame == anchor then return end frame:ClearAllPoints() if position == "TOP" and anchor then frame:SetPoint("BOTTOMLEFT", anchor, "TOPLEFT", 0, (spacing or 0))