Commit 83eaedc3 authored by nevcairiel's avatar nevcairiel

AceGUI-3.0: TreeGroup: Remove pre-8.0 compat

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@1234 5debad98-a965-4143-8383-f471b3509dcf
parent 142898a3
......@@ -6,8 +6,6 @@ local Type, Version = "TreeGroup", 44
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
local WoW80 = select(4, GetBuildInfo()) >= 80000
-- Lua APIs
local next, pairs, ipairs, assert, type = next, pairs, ipairs, assert, type
local math_min, math_max, floor = math.min, math.max, floor
......@@ -422,8 +420,7 @@ local methods = {
local maxlines = (floor(((self.treeframe:GetHeight()or 0) - 20 ) / 18))
if maxlines <= 0 then return end
-- workaround for lag spikes on WoW 8.0
if WoW80 and self.frame:GetParent() == UIParent and not fromOnUpdate then
if self.frame:GetParent() == UIParent and not fromOnUpdate then
self.frame:SetScript("OnUpdate", FirstFrameUpdate)
return
end
......@@ -584,6 +581,7 @@ local methods = {
end,
["SetTreeWidth"] = function(self, treewidth, resizable)
print(treewidth, resizable)
if not resizable then
if type(treewidth) == 'number' then
resizable = false
......
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