From 9d77745b66dbfb71eb61983e43ff944517f5c7a4 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 17 May 2015 12:42:58 +0400 Subject: [PATCH] another lib update cause f that --- .../LibElv-UIButtons-1.0/LibElv-UIButtons-1.0.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.9.5