mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
ui-widgets: give button texts the maximum space
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user