From b0056f73d81f7231393f256bf76958e114b67085 Mon Sep 17 00:00:00 2001 From: Krathe Date: Sun, 10 May 2026 16:31:28 +0100 Subject: [PATCH] (Pet Frames) Fix RIGHT anchor misalignment in ATTACHED and GROUPED modes In GROUPED+VERTICAL mode, the pet container was anchored to the bottommost party frame instead of the topmost, placing it below the party stack entirely. Fixed to use topmostFrame, mirroring the LEFT anchor case symmetrically. Also removes the -offsetX negation on all RIGHT anchor paths (ATTACHED, GROUPED+HORIZONTAL, GROUPED+VERTICAL) so that a positive Offset X value nudges the pet rightward (away from the party), consistent with how Offset X behaves in other anchor directions. --- Frames/Pets.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Frames/Pets.lua b/Frames/Pets.lua index fa050d0f..31a8e745 100644 --- a/Frames/Pets.lua +++ b/Frames/Pets.lua @@ -701,7 +701,7 @@ function DF:PositionPetFrame(frame) elseif anchor == "LEFT" then frame:SetPoint("RIGHT", frame.ownerFrame, "LEFT", offsetX, offsetY) elseif anchor == "RIGHT" then - frame:SetPoint("LEFT", frame.ownerFrame, "RIGHT", -offsetX, offsetY) + frame:SetPoint("LEFT", frame.ownerFrame, "RIGHT", offsetX, offsetY) end end @@ -883,9 +883,9 @@ function DF:UpdatePetGroupLayout() end elseif anchor == "RIGHT" then if partyGrowth == "HORIZONTAL" then - container:SetPoint("LEFT", rightmostFrame, "RIGHT", -offsetX, offsetY) + container:SetPoint("LEFT", rightmostFrame, "RIGHT", offsetX, offsetY) else - container:SetPoint("TOPLEFT", bottommostFrame, "TOPRIGHT", -offsetX, -centerOffsetY + offsetY) + container:SetPoint("TOPLEFT", topmostFrame, "TOPRIGHT", offsetX, -centerOffsetY + offsetY) end end