Skip to content

Commit 10a9904

Browse files
authored
Update button size if title renderer is changed and ignore size is true (#2401)
1 parent 5dd5ae5 commit 10a9904

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/ui/UIButton.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void Button::setTitleLabel(Label* label)
177177

178178
addProtectedChild(_titleRenderer, TITLE_RENDERER_Z, -1);
179179
updateTitleLocation();
180+
updateContentSize();
180181
}
181182
}
182183

0 commit comments

Comments
 (0)