Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Editor: Fix Incorrect Implementation in "#119088"

unit-ticka4e151416bcd
diff --git a/editor/project_manager/project_tag.cpp b/editor/project_manager/project_tag.cpp
index 101e7274f9d..c95fc4c02dc 100644
--- a/editor/project_manager/project_tag.cpp
+++ b/editor/project_manager/project_tag.cpp
@@ -41,7 +41,7 @@ void ProjectTag::_notification(int p_what) {
// HACK: Can't be set in constructor because `get_size()` would return empty.
// This logic should be migrated once `Button` utilizes internal labels.
if (p_what == NOTIFICATION_READY) {
- button->set_custom_minimum_size(get_size());
+ button->set_custom_minimum_size(button->get_size());
button->set_text_overrun_behavior(TextServer::OverrunBehavior::OVERRUN_TRIM_ELLIPSIS);
}
}