Quantcast

Since I'm using WorldQuestTracker and pissed about it's not updating position on auto minmize

Darthpred [09-10-16 - 05:53]
Since I'm using WorldQuestTracker and pissed about it's not updating position on auto minmize
Filename
ElvUI_SLE/core/core.lua
ElvUI_SLE/modules/quests/quests.lua
diff --git a/ElvUI_SLE/core/core.lua b/ElvUI_SLE/core/core.lua
index 0c535a4..e0697bd 100644
--- a/ElvUI_SLE/core/core.lua
+++ b/ElvUI_SLE/core/core.lua
@@ -104,6 +104,7 @@ local _CompList = {
 	"ElvUI_ExtraActionBars",
 	"ElvUI_KitUI",
 	"TradeSkillMaster",
+	"WorldQuestTracker",
 }
 for i = 1, #_CompList do
 	if GetAddOnEnableState(E.myname, _CompList[i]) == 0 then SLE._Compatibility[_CompList[i]] = nil else SLE._Compatibility[_CompList[i]] = true end
diff --git a/ElvUI_SLE/modules/quests/quests.lua b/ElvUI_SLE/modules/quests/quests.lua
index 2bf4953..fd1d512 100644
--- a/ElvUI_SLE/modules/quests/quests.lua
+++ b/ElvUI_SLE/modules/quests/quests.lua
@@ -49,7 +49,22 @@ function Q:ChangeState(event)
 		else
 			statedriver["FULL"](Q.frame)
 		end
-
+	end
+	if SLE._Compatibility["WorldQuestTracker"] then -- and WorldQuestTrackerAddon then
+		local y = 0
+		for i = 1, #ObjectiveTrackerFrame.MODULES do
+			local module = ObjectiveTrackerFrame.MODULES[i]
+			if (module.Header:IsShown()) then
+				y = y + module.contentsHeight
+			end
+		end
+		if (ObjectiveTrackerFrame.collapsed) then
+			WorldQuestTrackerAddon.TrackerHeight = 20
+		else
+			WorldQuestTrackerAddon.TrackerHeight = y
+		end
+
+		WorldQuestTrackerAddon.RefreshAnchor()
 	end
 end