From 29beed4924df00aa2bb35e3a84d1c6b63fd1c715 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Thu, 1 Oct 2009 17:37:29 -0500 Subject: [PATCH] Added a close button to editWeight --- WeightsWatcher.xml | 5 +++++ config.lua | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml index 5f19758..1350928 100644 --- a/WeightsWatcher.xml +++ b/WeightsWatcher.xml @@ -35,6 +35,11 @@ + diff --git a/config.lua b/config.lua index f005196..ee06ed7 100644 --- a/config.lua +++ b/config.lua @@ -25,7 +25,7 @@ function open_config() end function scrollBarUpdate() - local numShown, i = 30 + local numShown, i = 29 local offset = FauxScrollFrame_GetOffset(editWeight.scrollFrame) -- print(offset) FauxScrollFrame_Update(editWeight.scrollFrame, #(statButtonTable), numShown, 100) @@ -36,7 +36,7 @@ function scrollBarUpdate() if offset > #(statButtonTable) - numShown then offset = #(statButtonTable) - numShown end - statButtonTable[1]:SetPoint("TOPLEFT", 5, 20 * offset) + statButtonTable[1]:SetPoint("TOPLEFT", 5, -20 + 20 * offset) for i = 1, offset do -- seems to be the only way to reliably update the positions of the buttons after these statButtonTable[i]:Hide() -- 1.7.9.5