From 348765ac00ca5ac9c077b31d350c55fa70a4c263 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 1 Sep 2012 04:35:06 +0000 Subject: [PATCH] - Now that the numeric class power frame is being placed via SetPoint instead of SetAllPoints, we don't have to worry about the parent frame's width being correct to avoid truncating the number string; so don't force-update the width on the parent frame any more. - No longer explicitly setting the width on the class power numeric FontString either as we'll just allow it to size to the text instead. --- modules/ClassPowerCounter.lua | 1 - modules/Shards.lua | 2 -- 2 files changed, 3 deletions(-) diff --git a/modules/ClassPowerCounter.lua b/modules/ClassPowerCounter.lua index 614d1fe..43e1d63 100644 --- a/modules/ClassPowerCounter.lua +++ b/modules/ClassPowerCounter.lua @@ -657,7 +657,6 @@ function IceClassPowerCounter.prototype:CreateRuneFrame() -- create numeric runes self.frame.numeric = self:FontFactory(self.moduleSettings.runeFontSize, self.frame, self.frame.numeric) - self.frame.numeric:SetWidth(100) self.frame.numeric:SetJustifyH("CENTER") self.frame.numeric:SetPoint("CENTER", self.frame, "CENTER", 0, self.moduleSettings.numericVerticalOffset) diff --git a/modules/Shards.lua b/modules/Shards.lua index 6cd3ee4..2f55bce 100644 --- a/modules/Shards.lua +++ b/modules/Shards.lua @@ -45,8 +45,6 @@ function ShardCounter.prototype:Enable(core) self:RegisterEvent("UNIT_MAXPOWER", "UpdatePowerType") end self:UpdatePowerType() - - self.frame:SetWidth(self.runeWidth * self.numRunes) end function ShardCounter.prototype:UpdateRunePower(event, arg1, arg2)