skin: check width value before aligning to them

This commit is contained in:
shagu
2023-05-01 19:05:31 +02:00
parent ebaebc6304
commit f1d709a466
+1 -1
View File
@@ -24,7 +24,7 @@ pfUI:RegisterModule("skin", "vanilla:tbc", function ()
return
elseif center and center:IsShown() and left and left:IsShown() then
local width = left.rightObj:GetRight()
if width ~= UIParent.pfLeftAligned then
if width and width ~= UIParent.pfLeftAligned then
center:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", width + 10, -104)
UIParent.pfLeftAligned = width
end