- widen the minimum width for the TargetInfo module to account for long NPC names

This commit is contained in:
Parnic
2008-04-30 23:26:51 +00:00
parent a644a30705
commit 1bdcb68d9a

View File

@ -437,7 +437,8 @@ function TargetInfo.prototype:CreateFrame(redraw)
self.frame = CreateFrame("Button", "IceHUD_"..self.elementName, self.parent, "SecureUnitButtonTemplate")
end
self.width = self.settings.gap + 50
-- Parnic - yes, 200 is fairly arbitrary. make a best effort for long names to fit
self.width = math.max(200, self.settings.gap + 50)
self.frame:SetScale(self.moduleSettings.scale)