Skip to content

Commit

Permalink
ChatFrames: Fix the clamping of the combat log which is set at a diff…
Browse files Browse the repository at this point in the history
…erent time than the chatframes
  • Loading branch information
sylvanaar committed May 17, 2020
1 parent 82d9b4c commit f081cf1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/ChatFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ end
self:ConfigureAllChatFrames(true)
self:RawHook("FCF_DockFrame", true)
self:RawHook("FCF_UnDockFrame", true)
self:SecureHook("FloatingChatFrame_UpdateBackgroundAnchors")


if (self.db.profile.rememberframepositions) then
Expand Down Expand Up @@ -231,6 +232,14 @@ end
end


function mod:FloatingChatFrame_UpdateBackgroundAnchors(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
end
function mod:FCF_DockFrame(frame, ...)
if self.db.profile.removeclamp then
frame:SetClampRectInsets(0, 0, 0, 0)
Expand Down

0 comments on commit f081cf1

Please sign in to comment.