diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-12 17:18:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 17:18:50 +0100 |
commit | 45c6d3c5767f0ebc60ef1334aec5720680191eec (patch) | |
tree | cdb7b5a85d71a3cafb890ef261783c19670ff43b /editor | |
parent | 5e528f35505ba946cbda5f7c1fc800ed578b52dc (diff) | |
parent | 28537d8c84a03bf88e99f3cae0ca5ded0fc95df6 (diff) |
Merge pull request #45923 from reduz/fix-lineedit-minimum-width
Fix LineEdit minimum width
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 | ||||
-rw-r--r-- | editor/scene_tree_editor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index ac1beb1c37..11f44720da 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2841,7 +2841,7 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel filter->set_h_size_flags(SIZE_EXPAND_FILL); filter->set_placeholder(TTR("Filter nodes")); filter_hbc->add_child(filter); - filter->add_theme_constant_override("minimum_spaces", 0); + filter->add_theme_constant_override("minimum_character_width", 0); filter->connect("text_changed", callable_mp(this, &SceneTreeDock::_filter_changed)); button_create_script = memnew(Button); diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index ce44a4bca1..2cd64a81dc 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -1260,7 +1260,7 @@ SceneTreeDialog::SceneTreeDialog() { filter = memnew(LineEdit); filter->set_h_size_flags(Control::SIZE_EXPAND_FILL); filter->set_placeholder(TTR("Filter nodes")); - filter->add_theme_constant_override("minimum_spaces", 0); + filter->add_theme_constant_override("minimum_character_width", 0); filter->connect("text_changed", callable_mp(this, &SceneTreeDialog::_filter_changed)); vbc->add_child(filter); |