Debugging.
pschifferer [02-24-09 - 05:56]
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index 3694837..e7634f7 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -588,7 +588,9 @@ function Cauldron:UpdateQueue()
CauldronQueueFrameScrollFrameQueueSectionsMainItemsHeaderText:SetText(L["In order to make:"]);
-- adjust the scroll child size
+--@alpha@
self:debug("set main section height for "..#itemQueue.." items: "..(#itemQueue * itemFrameHeight));
+--@end-alpha@
CauldronQueueFrameScrollFrameQueueSectionsMainItems:SetHeight(#itemQueue * itemFrameHeight);
for i, queueInfo in ipairs(itemQueue) do
@@ -720,14 +722,14 @@ function Cauldron:UpdateQueue()
break;
end
- _G["CauldronQueueItem"..j] = nil;
+-- _G["CauldronQueueItem"..j] = nil;
frame:SetParent(nil);
frame:SetAlpha(0.0);
frame:Hide();
frame:SetHeight(0);
- frame = nil;
+-- frame = nil;
j = j + 1;
end
@@ -878,12 +880,14 @@ function Cauldron:UpdateQueue()
break;
end
- _G["CauldronQueueIntItem"..j] = nil;
+-- _G["CauldronQueueIntItem"..j] = nil;
+ frame:SetParent(nil);
+ frame:SetAlpha(0.0);
frame:Hide();
frame:SetHeight(0);
- frame = nil;
+-- frame = nil;
j = j + 1;
end
@@ -1017,12 +1021,14 @@ function Cauldron:UpdateQueue()
break;
end
- _G["CauldronQueueReagentItem"..j] = nil;
+-- _G["CauldronQueueReagentItem"..j] = nil;
+ frame:SetParent(nil);
+ frame:SetAlpha(0.0);
frame:Hide();
frame:SetHeight(0);
- frame = nil;
+-- frame = nil;
j = j + 1;
end