### Godot version

4.1 Beta 3

### System information

Win10

### Issue description

In the Godot 4.1. Beta3 Scene Panel, node names are overlapping the icons to the right. Like visibility icons, script icons ...
Especially apparent with longer node names:

https://github.com/godotengine/godot/assets/47016402/61cc8c75-efe5-4cfa-ac4f-5fcd4805140b

This is _not_ an issue in Godot 4.0.3:

https://github.com/godotengine/godot/assets/47016402/4035ea3f-80bd-479d-9d6f-761debdd6b49



### Steps to reproduce

Give long node names and resize the Scene Panel

### Minimal reproduction project

N/A
TreeItem *it = root;
	int ofs = _get_title_button_height();
	if (!it) {
		return 0;
	}
	while (true) {
		if (it == p_item) {
			return ofs;
		}
		if ((it != root || !hide_root) && it->is_visible()) {
			ofs += compute_item_height(it);
			ofs += theme_cache.v_separation;
		}
		if (it->first_child && !it->collapsed) {
			it = it->first_child;
		} else if (it->next) {
			it = it->next;
		} else {
			while (!it->next) {
				it = it->parent;
				if (it == nullptr) {
					return 0;
				}
			}
			it = it->next;
		}
	}
	return -1; 
}
void Tree::ensure_cursor_is_visible() {