mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Clip text in NodeDock toolbuttons to prevent dock size changes
Fixes #35367
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user