diff options
author | Eric Rybicki <info@ericrybicki.com> | 2020-01-21 10:23:09 +0100 |
---|---|---|
committer | Eric Rybicki <info@ericrybicki.com> | 2020-01-21 10:23:09 +0100 |
commit | 371b5a450afaa4f81d53a7763c3ff253c5912c23 (patch) | |
tree | 7642f13fa7f2704d9213dc9e0755431ce049f194 | |
parent | 1508cc405168736b6d7c2fb117e6e4bc72a8afe6 (diff) |
Clip text in NodeDock toolbuttons to prevent dock size changes
Fixes #35367
-rw-r--r-- | editor/node_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/node_dock.cpp b/editor/node_dock.cpp index 20b8b3f5cb..c53c5f330b 100644 --- a/editor/node_dock.cpp +++ b/editor/node_dock.cpp @@ -105,6 +105,7 @@ NodeDock::NodeDock() { connections_button->set_toggle_mode(true); connections_button->set_pressed(true); connections_button->set_h_size_flags(SIZE_EXPAND_FILL); + connections_button->set_clip_text(true); mode_hb->add_child(connections_button); connections_button->connect("pressed", this, "show_connections"); @@ -113,6 +114,7 @@ NodeDock::NodeDock() { groups_button->set_toggle_mode(true); groups_button->set_pressed(false); groups_button->set_h_size_flags(SIZE_EXPAND_FILL); + groups_button->set_clip_text(true); mode_hb->add_child(groups_button); groups_button->connect("pressed", this, "show_groups"); |