mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- widen the minimum width for the TargetInfo module to account for long NPC names
This commit is contained in:
@ -436,8 +436,9 @@ function TargetInfo.prototype:CreateFrame(redraw)
|
|||||||
if not (self.frame) then
|
if not (self.frame) then
|
||||||
self.frame = CreateFrame("Button", "IceHUD_"..self.elementName, self.parent, "SecureUnitButtonTemplate")
|
self.frame = CreateFrame("Button", "IceHUD_"..self.elementName, self.parent, "SecureUnitButtonTemplate")
|
||||||
end
|
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)
|
self.frame:SetScale(self.moduleSettings.scale)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user