mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
backdrop: increase clickable area if possible
This commit is contained in:
@@ -139,6 +139,11 @@ function pfUI.utils:CreateBackdrop(f, inset, legacy, transp)
|
||||
return
|
||||
end
|
||||
|
||||
-- increase clickable area if available
|
||||
if f.SetHitRectInsets then
|
||||
f:SetHitRectInsets(-border,-border,-border,-border)
|
||||
end
|
||||
|
||||
-- use new backdrop behaviour
|
||||
if not f.backdrop then
|
||||
f:SetBackdrop(nil)
|
||||
|
||||
Reference in New Issue
Block a user