From 22c37043b8b64190a08abcb307bc5a8509260095 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 12 Dec 2016 00:05:54 +0100 Subject: [PATCH] backdrop: increase clickable area if possible --- pfUI.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pfUI.lua b/pfUI.lua index 8632587b..fa240a99 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -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)