From 8d015ba8ec0f96339e07576b6e09cae3001fef3b Mon Sep 17 00:00:00 2001 From: WildCard_25 Date: Mon, 18 Mar 2019 03:57:57 +1100 Subject: [PATCH] Modify scrollframe to stop mission buttons overlapping frame border, also stops list expanding over title when missions are being sent. --- Widgets.lua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Widgets.lua b/Widgets.lua index e9f4274..48a1130 100644 --- a/Widgets.lua +++ b/Widgets.lua @@ -289,15 +289,12 @@ local function GMCLayer() self:ReleaseChildren() self.scroll=nil end - self.scroll=AceGUI:Create("ScrollFrame") - local scroll=self.scroll - self:AddChild(scroll) - scroll:SetLayout("List") -- probably? + local scroll = AceGUI:Create("ScrollFrame") + scroll:SetLayout("List") scroll:SetFullWidth(true) scroll:SetFullHeight(true) - scroll:SetPoint("TOPLEFT",self.title,"BOTTOMLEFT",0,0) - scroll:SetPoint("TOPRIGHT",self.title,"BOTTOMRIGHT",0,0) - scroll:SetPoint("BOTTOM",self.content,"BOTTOM",0,0) + self:AddChild(scroll) + self.scroll = scroll end ---@function [parent=#GMCLayer] local function Constructor() @@ -326,8 +323,9 @@ local function GMCLayer() local content = CreateFrame("Frame",nil,frame) widget.content = content content.obj = self - content:SetPoint("TOPLEFT",title,"BOTTOMLEFT") - content:SetPoint("BOTTOMRIGHT") + content:SetPoint("TOPLEFT",title,"BOTTOMLEFT",6,0) + content:SetPoint("TOPRIGHT",title,"BOTTOMRIGHT",-6,0) + content:SetPoint("BOTTOM",0,6) AceGUI:RegisterAsContainer(widget) return widget end -- 1.7.9.5