Quantcast

another lib update cause f that

Darthpred [05-17-15 - 08:42]
another lib update cause f that
Filename
ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
diff --git a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
index 9d93f19..30d6647 100644
--- a/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
+++ b/ElvUI_SLE/libs/LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua
@@ -259,8 +259,14 @@ local function FrameSize(menu)
 			local group = menu.GroupsTable[i]
 			local mass = menu[group.."Table"]
 			for w = 1, #mass do
-				if mass[w].text and mass[w].text:GetWidth() > menu.HoldersTable[i].width then
+				if mass[w].text and mass[w].text:GetWidth() > menu.HoldersTable[i].width and not menu.fixedDropdownWidth then
 					menu.HoldersTable[i].width = mass[w].text:GetWidth() + 10
+				elseif menu.fixedDropdownWidth then
+					menu.HoldersTable[i].width = menu.fixedDropdownWidth
+					if mass[w].text and mass[w].text:GetWidth() >  menu.fixedDropdownWidth then
+						mass[w].text:SetWidth(menu.fixedDropdownWidth - 10)
+						mass[w].text:SetWordWrap(false)
+					end
 				end
 			end
 			for n = 1, #mass do