From da7af983144e59b891f62136a67a3c91e9df9b9a Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 29 Jun 2010 03:04:05 -0400 Subject: [PATCH] Adjusted the main panel's mouse-interactive and screen-clamp areas. --- Frame.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Frame.lua b/Frame.lua index 35d33a5..005be0f 100644 --- a/Frame.lua +++ b/Frame.lua @@ -935,12 +935,13 @@ do MainPanel:SetHeight(512) MainPanel:SetFrameStrata("MEDIUM") MainPanel:SetToplevel(true) - MainPanel:SetHitRectInsets(0, 35, 0, 55) + MainPanel:SetClampedToScreen(true) + MainPanel:SetClampRectInsets(0, -35, 0, 53) + MainPanel:SetHitRectInsets(0, 35, 0, 53) MainPanel:EnableMouse(true) MainPanel:EnableKeyboard(true) MainPanel:SetMovable(true) - MainPanel:SetClampedToScreen(true) MainPanel.is_expanded = false @@ -1327,7 +1328,8 @@ function MainPanel:ToggleState() if self.is_expanded then self:SetWidth(self.normal_width) - self:SetHitRectInsets(0, 35, 0, 55) + self:SetHitRectInsets(0, 35, 0, 53) + self:SetClampRectInsets(0, -35, 0, 53) self.top_left:SetTexture("Interface\\QuestFrame\\UI-QuestLog-TopLeft") self.top_right:SetTexture("Interface\\QuestFrame\\UI-QuestLog-TopRight") @@ -1338,7 +1340,8 @@ function MainPanel:ToggleState() self.xclose_button:SetPoint("TOPRIGHT", self, "TOPRIGHT", -30, -8) else self:SetWidth(self.expanded_width) - self:SetHitRectInsets(0, 90, 0, 55) + self:SetHitRectInsets(0, 90, 0, 53) + self:SetClampRectInsets(0, -90, 0, 53) self.top_left:SetTexture("Interface\\QuestFrame\\UI-QuestLogDualPane-Left") self.top_right:SetTexture("Interface\\QuestFrame\\UI-QuestLogDualPane-Right") -- 1.7.9.5