loot: prevent lootframe from drawing off-screen

This commit is contained in:
Road-block
2018-10-21 20:32:44 +03:00
committed by shagu
parent e713170511
commit 35afb39970
+5
View File
@@ -420,6 +420,11 @@ pfUI:RegisterModule("loot", function ()
pfUI.loot.slots = {}
function pfUI.loot:UpdateLootFrame()
if C.loot.mousecursor == "1" then
pfUI.loot:SetClampedToScreen(true)
else
pfUI.loot:SetClampedToScreen(false)
end
local maxrarity, maxwidth = 0, 0
local items = GetNumLootItems()