Fix TabContainer not updating content rect after changing tab title

This commit is contained in:
Haoyu Qiu 2024-04-23 09:41:05 +08:00
parent 7abe0c6014
commit 91918e8cb7

View file

@ -760,10 +760,8 @@ void TabContainer::set_tab_title(int p_tab, const String &p_title) {
child->set_meta("_tab_name", p_title); child->set_meta("_tab_name", p_title);
} }
_update_margins(); _repaint();
if (!get_clip_tabs()) { queue_redraw();
update_minimum_size();
}
} }
String TabContainer::get_tab_title(int p_tab) const { String TabContainer::get_tab_title(int p_tab) const {