Commit d0ac9464 authored by Elv's avatar Elv
Browse files

@Simpy this seems to cleanup some scaling issues.

parent 983a2f67
......@@ -48,8 +48,8 @@ function UF:Configure_ClassBar(frame)
UF.ToggleResourceBar(bars)
--We don't want to modify the original frame.CLASSBAR_WIDTH value, as it bugs out when the classbar gains more buttons
local CLASSBAR_WIDTH = frame.CLASSBAR_WIDTH
local SPACING = (UF.BORDER + UF.SPACING)*2
local CLASSBAR_WIDTH = E:Scale(frame.CLASSBAR_WIDTH)
local SPACING = E:Scale((UF.BORDER + UF.SPACING)*2)
local color = E.db.unitframe.colors.borderColor
if not bars.backdrop.forcedBorderColors then
......
......@@ -86,18 +86,18 @@ function UF:SetSize_HealComm(frame)
local barHeight = db.height
if barHeight == -1 or barHeight > height then barHeight = height end
pred.myBar:Size(width, barHeight)
pred.otherBar:Size(width, barHeight)
pred.healAbsorbBar:Size(width, barHeight)
pred.absorbBar:Size(width, barHeight)
pred.myBar:SetSize(width, barHeight)
pred.otherBar:SetSize(width, barHeight)
pred.healAbsorbBar:SetSize(width, barHeight)
pred.absorbBar:SetSize(width, barHeight)
else
local barWidth = db.height -- this is really width now not height
if barWidth == -1 or barWidth > width then barWidth = width end
pred.myBar:Size(barWidth, height)
pred.otherBar:Size(barWidth, height)
pred.healAbsorbBar:Size(barWidth, height)
pred.absorbBar:Size(barWidth, height)
pred.myBar:SetSize(barWidth, height)
pred.otherBar:SetSize(barWidth, height)
pred.healAbsorbBar:SetSize(barWidth, height)
pred.absorbBar:SetSize(barWidth, height)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment