From 0c2954d230b90709ab261438229d37ec4a635d4b Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Sat, 27 Dec 2025 20:15:41 +0400 Subject: [PATCH] mailbox frame styles --- UI/MailboxFrame.lua | 11 +++++++++++ UI/MailboxFrame.xml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/UI/MailboxFrame.lua b/UI/MailboxFrame.lua index 163e4ec..73d62fa 100644 --- a/UI/MailboxFrame.lua +++ b/UI/MailboxFrame.lua @@ -192,6 +192,12 @@ function MailboxFrame:DisplayItems(items, charFullName, totalMails) itemButton.isMail = true itemButton.mailIndex = mail.mailIndex itemButton.mailItemIndex = mail.itemIndex or 1 + + -- Force left alignment in case template or other code changed anchors + if itemButton then + itemButton:ClearAllPoints() + itemButton:SetPoint("TOPLEFT", row, "TOPLEFT", 10, -8) + end if mail.item and (mail.item.texture or mail.item.link) then Guda_ItemButton_SetItem(itemButton, nil, nil, mail.item, false, charFullName, true, true) @@ -223,6 +229,11 @@ function MailboxFrame:DisplayItems(items, charFullName, totalMails) -- Row Money Frame local moneyFrame = getglobal(row:GetName() .. "_MoneyFrame") + if moneyFrame then + -- Force left alignment for the money frame + moneyFrame:ClearAllPoints() + moneyFrame:SetPoint("BOTTOMLEFT", row, "BOTTOMLEFT", 10, 8) + end if (mail.money or 0) > 0 then MoneyFrame_Update(moneyFrame:GetName(), mail.money) moneyFrame:Show() diff --git a/UI/MailboxFrame.xml b/UI/MailboxFrame.xml index 5577d3d..3ae8c80 100644 --- a/UI/MailboxFrame.xml +++ b/UI/MailboxFrame.xml @@ -4,7 +4,7 @@ - +