From 405a4943c3408d24dc1d61519807b591a9147fd2 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 23 Jan 2017 14:44:11 +0100 Subject: [PATCH] api: prevent frames from being placed offscreen --- env/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/env/api.lua b/env/api.lua index bc0b27ab..ec3f0407 100644 --- a/env/api.lua +++ b/env/api.lua @@ -95,6 +95,7 @@ end -- 'frame' [frame] the frame that should be updated. function pfUI.api:UpdateMovable(frame) local name = frame:GetName() + frame:SetClampedToScreen(true) if not pfUI.movables[name] then pfUI.movables[name] = true