From e6b886884946e257c1e58b59a46f6d272a4d5086 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 15 Aug 2016 12:15:25 +0200 Subject: [PATCH] minor change --- gui.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui.lua b/gui.lua index 728055e..64443b3 100644 --- a/gui.lua +++ b/gui.lua @@ -157,6 +157,11 @@ do end end +function public.set_size(frame, width, height) + frame:SetWidth(width) + frame:SetHeight(height or width) +end + function public.set_frame_style(frame, backdrop_color, border_color, left, right, top, bottom) frame:SetBackdrop{bgFile=[[Interface\Buttons\WHITE8X8]], edgeFile=[[Interface\Buttons\WHITE8X8]], edgeSize=m.config.edge_size, tile=true, insets={left=left, right=right, top=top, bottom=bottom}} frame:SetBackdropColor(unpack(backdrop_color)) @@ -507,7 +512,8 @@ function public.dropdown(parent) local button = getglobal(dropdown:GetName()..'Button') button:ClearAllPoints() - button:SetPoint('RIGHT', dropdown, 1, 0) + button:SetScale(0.9) + button:SetPoint('RIGHT', dropdown, 0, 0) dropdown.button = button local text = getglobal(dropdown:GetName()..'Text')