From 35afb3997032d5f2d81a486ddb5178df3142d5ed Mon Sep 17 00:00:00 2001 From: Road-block Date: Sun, 21 Oct 2018 20:32:44 +0300 Subject: [PATCH] loot: prevent lootframe from drawing off-screen --- modules/loot.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/loot.lua b/modules/loot.lua index 7fcdccd9..5657d2dd 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -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()