mirror of
https://github.com/godotengine/godot
synced 2024-09-05 09:26:39 +00:00
Merge pull request #91038 from timothyqiu/tab-container-toggle-icon-text
Fix TabContainer using wrong content rect after tab title update
This commit is contained in:
commit
d7abefd0a3
|
@ -762,10 +762,8 @@ void TabContainer::set_tab_title(int p_tab, const String &p_title) {
|
|||
child->set_meta("_tab_name", p_title);
|
||||
}
|
||||
|
||||
_update_margins();
|
||||
if (!get_clip_tabs()) {
|
||||
update_minimum_size();
|
||||
}
|
||||
_repaint();
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
String TabContainer::get_tab_title(int p_tab) const {
|
||||
|
|
Loading…
Reference in a new issue