From 33496f738ea69bd42a159bfab08dbb8e539fff43 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Thu, 29 Jul 2010 01:49:56 -0500 Subject: [PATCH] Fixed the copy and delete buttons in the weights config to be positioned correctly even if the parent container size changes --- weights.xml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/weights.xml b/weights.xml index 743bd91..e3abd6b 100644 --- a/weights.xml +++ b/weights.xml @@ -553,17 +553,15 @@ - - - - - - - ww_configNewWeight(self:GetParent().weightFrame.category.class, "Copy of " .. self:GetParent().weightFrame.name, self:GetParent().statList) + + local relTo = self:GetParent().saveButton + local _, _, _, relToXOffset = relTo:GetPoint(1) + self:SetPoint("CENTER", relTo, (self:GetParent():GetWidth() - self:GetWidth() - 2 * relToXOffset) / 3, 0) + @@ -589,17 +587,15 @@ - - - - - - - ww_configDeleteWeight() + + local relTo = self:GetParent().resetButton + local _, _, _, relToXOffset = relTo:GetPoint(1) + self:SetPoint("CENTER", relTo, (self:GetWidth() - 2 * relToXOffset - self:GetParent():GetWidth()) / 3, 0) + -- 1.7.9.5