backdrop: increase clickable area if possible

This commit is contained in:
shagu
2016-12-12 00:05:54 +01:00
parent 4f6917ecd9
commit 22c37043b8
+5
View File
@@ -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)