Total shot in the dark but try adding the line in bold:
if (itemCount) then
local itemName = nil;
tooltip:SetOwner(this)
tooltip:SetBagItem(bag, slot);
local ttext = getglobal("TestTextLeft1");
I didn't follow the discussion on IRC but I seem to recall something about tooltips not working well if a SetOwner didn't work, or something like that. IsVisible was mentioned in there also. Sorry that's not much information.
|