mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 11:10:00 +00:00
api: prevent frames from being placed offscreen
This commit is contained in:
Vendored
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user