- forcibly set bar upper/lower text width to 0 after setting their contents so that they auto-resize to the proper width. some massive bar/font sizes were causing strings to get cut off

This commit is contained in:
Parnic
2010-08-21 01:05:06 +00:00
parent f5c5cf556d
commit 9ef8a4db51

View File

@ -939,6 +939,7 @@ function IceBarElement.prototype:SetBottomText1(text, color)
end
self.frame.bottomUpperText:SetText(text)
self.frame.bottomUpperText:SetWidth(0)
end
@ -968,6 +969,7 @@ function IceBarElement.prototype:SetBottomText2(text, color, alpha)
self.frame.bottomLowerText:SetTextColor(self:GetColor(color, alpha))
self.frame.bottomLowerText:SetText(text)
self.frame.bottomLowerText:SetWidth(0)
end