From 36b30fe92740af056f8a80e9c22e0f82c8d347a6 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 28 Apr 2010 06:05:23 -0400 Subject: [PATCH] In MainPanel:ToggleState(): Record the panel's coords before expanding or contracting to avoid making it jump when re-setting its anchors. --- Frame.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index 521c329..0194f45 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1161,6 +1161,8 @@ function MainPanel:HighlightCategory(target) end function MainPanel:ToggleState() + local x, y = self:GetLeft(), self:GetBottom() + if self.is_expanded then self:SetWidth(MAINPANEL_NORMAL_WIDTH) @@ -1180,8 +1182,6 @@ function MainPanel:ToggleState() end self.is_expanded = not self.is_expanded - local x, y = self:GetLeft(), self:GetBottom() - self:ClearAllPoints() self:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", x, y) self:UpdateTitle() -- 1.7.9.5