From 129e6c9bae31901fe1261406e80c491368c97b45 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Jul 2025 22:48:51 +0200 Subject: [PATCH] ui-widgets: give button texts the maximum space --- api/ui-widgets.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index 3abc6765..a30585e6 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -680,6 +680,9 @@ function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight) b:SetFont(pfUI.font_default, pfUI_config.global.font_size, "OUTLINE") + local text = b:GetFontString() + if text then text:SetAllPoints() end + b.LockHighlight = function() b:SetBackdropBorderColor(cr,cg,cb,1) b.locked = true