summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2022-08-04 19:07:10 +0300
committerYuri Sizov <yuris@humnom.net>2022-08-04 19:07:10 +0300
commitebcfd13c304ee7e22dfe786c2f2714c8203e66fe (patch)
tree92525d05cfe4d5c79b320e7dfca8138d0a894e13 /editor
parent9f408aef4541888d61fe78c36e752d84f1769efc (diff)
Add text overrun behavior for the theme type selector
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/theme_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp
index 2a61ea0baa..bbc22c8622 100644
--- a/editor/plugins/theme_editor_plugin.cpp
+++ b/editor/plugins/theme_editor_plugin.cpp
@@ -3381,6 +3381,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
theme_type_list = memnew(OptionButton);
theme_type_list->set_h_size_flags(SIZE_EXPAND_FILL);
+ theme_type_list->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
type_list_hb->add_child(theme_type_list);
theme_type_list->connect("item_selected", callable_mp(this, &ThemeTypeEditor::_list_type_selected));