From 10a9904ef9302f4d5c78e0122fcfff9e4bdb2fb7 Mon Sep 17 00:00:00 2001 From: RH Date: Tue, 18 Feb 2025 00:09:04 +1100 Subject: [PATCH] Update button size if title renderer is changed and ignore size is true (#2401) --- core/ui/UIButton.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ui/UIButton.cpp b/core/ui/UIButton.cpp index e9a59af6b907..16024400a6ad 100644 --- a/core/ui/UIButton.cpp +++ b/core/ui/UIButton.cpp @@ -177,6 +177,7 @@ void Button::setTitleLabel(Label* label) addProtectedChild(_titleRenderer, TITLE_RENDERER_Z, -1); updateTitleLocation(); + updateContentSize(); } }