View Single Post
05-12-17, 12:02 AM   #16
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 45
Originally Posted by Ketho View Post
I still have no idea why that was happening even after reading your posts or where the issue lies. Hopefully it's not because WardrobeSort (LoadOnDemand) is initializing the dropdowns on WardrobeCollectionFrame.ItemsCollectionFrame:HookScript("OnShow", func) or something
Not sure if it's related to the hootscript, but I also suspect it could related to the customized codes below:
Lua Code:
  1. for i = 1, LIB_UIDROPDOWNMENU_MAXLEVELS do
  2.     local listFrameName = "Lib_DropDownList"..i;   
  3.     local f = CreateFrame("Button", listFrameName, nil, "Lib_UIDropDownListTemplate");
  4.     f:SetID(i);
  5.     f:SetSize(180, 10);
  6.     f:SetFrameStrata("FULLSCREEN_DIALOG");
  7.     local fontName, fontHeight, fontFlags = _G["Lib_DropDownList1Button1NormalText"]:GetFont();
  8.     LIB_UIDROPDOWNMENU_DEFAULT_TEXT_HEIGHT = fontHeight;
  9.     for j = 1, LIB_UIDROPDOWNMENU_MAXBUTTONS do
  10.         local b = CreateFrame("Button", listFrameName.."Button"..j, f, "Lib_UIDropDownMenuButtonTemplate");
  11.         b:SetID(j);
  12.     end
  13. end

This was added in the very early version of the NoTaint_DropDownMenu.
  Reply With Quote