api: prevent frames from being placed offscreen

This commit is contained in:
shagu
2017-01-23 14:44:11 +01:00
parent 51b3e525e5
commit 405a4943c3
Vendored
+1
View File
@@ -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