From b6dedc7b5b0f7b6a35196bd98d227c8a25310ca4 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 10 Jan 2017 04:20:05 +0100 Subject: [PATCH] button font fix --- gui/core.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/core.lua b/gui/core.lua index 0f9a1ab..e30cc95 100644 --- a/gui/core.lua +++ b/gui/core.lua @@ -168,10 +168,9 @@ function M.button(parent, text_height) do local label = button:CreateFontString() label:SetFont(font, text_height) - label:SetPoint('CENTER', 0, 0) + label:SetAllPoints(button) label:SetJustifyH('CENTER') label:SetJustifyV('CENTER') - label:SetHeight(text_height) label:SetTextColor(color.text.enabled()) button:SetFontString(label) end