View Single Post
05-11-17, 04:19 AM   #8
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 45
for the issue that Accountant Classic's menu will be showing in WardrobeSort, I can do some enhancement to see if the problem will be gone.
But like Resike said, even with the NoTaint_UIDropDown which I revised, still need some more test as I can 100% sure it should work just fine.

For your information, I did add some enhancement in the function Lib_UIDropDownMenu_AddButton():
1.
old codes:
Lua Code:
  1. ....
  2.     local listFrame = _G["DropDownList"..level];
  3.     local index = listFrame and (listFrame.numButtons + 1) or 1;
  4.     local width;
new codes:
Lua Code:
  1. ....
  2.     local index;
  3.     local listFrame = _G["Lib_DropDownList"..level];
  4.     if (listFrame and listFrame.numButtons) then
  5.         index = listFrame.numButtons + 1;
  6.     else
  7.         index = 1;
  8.     end
  9.     local width;

2.
old codes:
Lua Code:
  1. ....
  2.     width = max(UIDropDownMenu_GetButtonWidth(button), info.minWidth or 0);
  3.     --Set maximum button width
  4.     if ( width > listFrame.maxWidth ) then
  5.         listFrame.maxWidth = width;
  6.     end
new codes:
Lua Code:
  1. ....
  2.     width = max(Lib_UIDropDownMenu_GetButtonWidth(button), info.minWidth or 0);
  3.     --Set maximum button width
  4.     if ( listFrame.maxWidth and width > listFrame.maxWidth ) then
  5.         listFrame.maxWidth = width;
  6.     end
  Reply With Quote