From 1bdcb68d9a4a47836ff9c8ee4010b4d67a89329c Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 30 Apr 2008 23:26:51 +0000 Subject: [PATCH] - widen the minimum width for the TargetInfo module to account for long NPC names --- modules/TargetInfo.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/TargetInfo.lua b/modules/TargetInfo.lua index e14a7ba..c5f438a 100644 --- a/modules/TargetInfo.lua +++ b/modules/TargetInfo.lua @@ -436,8 +436,9 @@ function TargetInfo.prototype:CreateFrame(redraw) if not (self.frame) then 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)