Skip to content

Commit

Permalink
Update button size if title renderer is changed and ignore size is tr…
Browse files Browse the repository at this point in the history
  • Loading branch information
rh101 authored Feb 17, 2025
1 parent 5dd5ae5 commit 10a9904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/ui/UIButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ void Button::setTitleLabel(Label* label)

addProtectedChild(_titleRenderer, TITLE_RENDERER_Z, -1);
updateTitleLocation();
updateContentSize();
}
}

Expand Down

0 comments on commit 10a9904

Please sign in to comment.