Skip to content

Commit

Permalink
ChatFrames: Allow frames pulled from the dock to be clamped to the left
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed May 17, 2020
1 parent d9ed916 commit 1a0287b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/ChatFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ end
CHAT_FRAME_BUTTON_FRAME_MIN_ALPHA = 0
self:ConfigureAllChatFrames(true)
self:RawHook("FCF_DockFrame", true)
self:RawHook("FCF_UnDockFrame", true)


if (self.db.profile.rememberframepositions) then
Expand Down Expand Up @@ -240,6 +241,16 @@ end
return self.hooks["FCF_DockFrame"](frame, ...)
end

function mod:FCF_UnDockFrame(frame, ...)
if self.db.profile.removeclamp then
frame:SetClampRectInsets(0, 0, 0, 0)
end
Prat.Frames[frame:GetName()] = frame
local m = Prat.Addon:GetModule("Font", true)
if m then m:ConfigureAllChatFrames() end
return self.hooks["FCF_UnDockFrame"](frame, ...)
end

--[[------------------------------------------------
Core Functions
------------------------------------------------]] --
Expand Down

0 comments on commit 1a0287b

Please sign in to comment.