Skip to content

Commit

Permalink
Changed the way screen protection works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Dec 1, 2023
1 parent dadb493 commit c4c984b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frames/bag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ function bagProto:KeepBagInBounds()
local left, top = self.frame:GetLeft(), self.frame:GetTop()
local uitop = UIParent:GetTop()
if left < 0 or top > uitop then
self.frame:ClearAllPoints()
self.frame:SetPoint("TOPLEFT")
self.frame:SetClampedToScreen(false)
else
self.frame:SetClampedToScreen(true)
end
end

Expand Down

0 comments on commit c4c984b

Please sign in to comment.