castbar: use a static modifier to calculate height

This commit is contained in:
shagu
2017-12-24 19:10:57 +01:00
parent 84c14f1f19
commit 6f61b6c82b
+2 -2
View File
@@ -20,7 +20,7 @@ pfUI:RegisterModule("castbar", function ()
pfUI.castbar.player = CreateFrame("Frame", "pfPlayerCastbar", UIParent)
pfUI.castbar.player:SetFrameStrata("MEDIUM")
CreateBackdrop(pfUI.castbar.player, default_border)
pfUI.castbar.player:SetHeight(C.global.font_size + default_border)
pfUI.castbar.player:SetHeight(C.global.font_size * 1.5)
if pfUI.uf.player then
local pspace = tonumber(C.unitframes.player.pspace)
@@ -336,7 +336,7 @@ pfUI:RegisterModule("castbar", function ()
pfUI.castbar.target = CreateFrame("Frame", "pfTargetCastbar", UIParent)
pfUI.castbar.target:SetFrameStrata("MEDIUM")
CreateBackdrop(pfUI.castbar.target, default_border)
pfUI.castbar.target:SetHeight(C.global.font_size + default_border)
pfUI.castbar.target:SetHeight(C.global.font_size * 1.5)
if pfUI.uf.target then
local pspace = tonumber(C.unitframes.target.pspace)