### Godot version

v4.2.dev3.official [013e8e3af]

### System information

Windows 10, 64bit

### Issue description

![image](https://github.com/godotengine/godot/assets/35988767/ccdac68c-a60d-491b-a406-d6e3bc1c95ae)
![GIF](https://github.com/godotengine/godot/assets/35988767/7d230faf-0260-4bc3-92e8-11cd026931a8)


### Steps to reproduce

/

### Minimal reproduction project

/
Control *child = get_tab_control(p_tab);
	ERR_FAIL_NULL(child);
	if (tab_bar->get_tab_title(p_tab) == p_title) {
		return;
	}
	tab_bar->set_tab_title(p_tab, p_title);
	if (p_title == child->get_name()) {
		child->remove_meta("_tab_name");
	} else {
		child->set_meta("_tab_name", p_title);
	}
	_update_margins();
	if (!get_clip_tabs()) {
		update_minimum_size();
	}
}
String TabContainer::get_tab_title(int p_tab) const {
	return tab_bar->get_tab_title(p_tab);
}
void TabContainer::set_tab_icon(int p_tab, const Ref<Texture2D> &p_icon) {
	if (tab_bar->get_tab_icon(p_tab) == p_icon) {
		return;
	}
	tab_bar->set_tab_icon(p_tab, p_icon);
	_update_margins();
	_repaint();
}
Ref<Texture2D> TabContainer::get_tab_icon(int p_tab) const {