Quantcast

5.0.63

Steven Jackson [10-18-14 - 01:48]
5.0.63
Filename
Interface/AddOns/SVUI/packages/tip/SVTip.lua
diff --git a/Interface/AddOns/SVUI/packages/tip/SVTip.lua b/Interface/AddOns/SVUI/packages/tip/SVTip.lua
index 0715d2c..8e17d70 100644
--- a/Interface/AddOns/SVUI/packages/tip/SVTip.lua
+++ b/Interface/AddOns/SVUI/packages/tip/SVTip.lua
@@ -690,7 +690,7 @@ local _hook_OnTipHide = function(self)
 end

 local function ApplyTooltipSkins()
-	local barHeight = SV.db.SVTip.healthBar.height
+	local barHeight = GameTooltipStatusBar:GetHeight()

 	for i, tooltip in pairs(tooltips) do
 		if(not tooltip) then return end
@@ -871,11 +871,11 @@ function MOD:Load()
 	SV.Mentalo:Add(anchor, L["Tooltip"])

 	local barHeight = SV.db.SVTip.healthBar.height
+	GameTooltipStatusBar:SetHeight(barHeight)
+	GameTooltipStatusBar:SetStatusBarTexture(SV.Media.bar.default)

 	ApplyTooltipSkins()
-
-	GameTooltipStatusBar:Height(barHeight)
-	GameTooltipStatusBar:SetStatusBarTexture(SV.Media.bar.default)
+
 	GameTooltipStatusBar:ClearAllPoints()
 	GameTooltipStatusBar:SetPoint("BOTTOMLEFT", GameTooltip.SuperBorder, "BOTTOMLEFT", 3, 3)
 	GameTooltipStatusBar:SetPoint("BOTTOMRIGHT", GameTooltip.SuperBorder, "BOTTOMRIGHT", -3, 3)
@@ -883,6 +883,7 @@ function MOD:Load()
 	GameTooltipStatusBar.text:Point("CENTER", GameTooltipStatusBar, "CENTER", 0, 0)
 	GameTooltipStatusBar.text:SetFontTemplate(LSM:Fetch("font", SV.db.SVTip.healthBar.font), SV.db.SVTip.healthBar.fontSize, "OUTLINE")

+
 	if not GameTooltipStatusBar.border then
 		local border = CreateFrame("Frame", nil, GameTooltipStatusBar)
 		border:WrapOuter(GameTooltipStatusBar, 1, 1)