mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a rare error that could occur when bars appeared or disappeared
This commit is contained in:
@ -481,7 +481,7 @@ function IceBarElement.prototype:CreateBackground()
|
||||
end
|
||||
|
||||
self.frame:SetFrameStrata("BACKGROUND")
|
||||
self.frame:SetWidth(self.settings.barWidth + self.moduleSettings.widthModifier)
|
||||
self.frame:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||
self.frame:SetHeight(self.settings.barHeight)
|
||||
|
||||
if not (self.frame.bg) then
|
||||
@ -525,7 +525,7 @@ function IceBarElement.prototype:CreateBar()
|
||||
end
|
||||
|
||||
self.barFrame:SetFrameStrata("LOW")
|
||||
self.barFrame:SetWidth(self.settings.barWidth + self.moduleSettings.widthModifier)
|
||||
self.barFrame:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||
self.barFrame:SetHeight(self.settings.barHeight)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user