Browse Source

Merge pull request #20084 from guilhermefelipecgs/fix_visual_script_editor

Fix visual script editor interface
Max Hilbrunner 7 years ago
parent
commit
b69422162d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/visual_script/visual_script_editor.cpp

+ 1 - 0
modules/visual_script/visual_script_editor.cpp

@@ -3389,6 +3389,7 @@ VisualScriptEditor::VisualScriptEditor() {
 
 
 	graph = memnew(GraphEdit);
 	graph = memnew(GraphEdit);
 	add_child(graph);
 	add_child(graph);
+	graph->set_v_size_flags(Control::SIZE_EXPAND_FILL);
 	graph->set_anchors_and_margins_preset(Control::PRESET_WIDE);
 	graph->set_anchors_and_margins_preset(Control::PRESET_WIDE);
 	graph->connect("node_selected", this, "_node_selected");
 	graph->connect("node_selected", this, "_node_selected");
 	graph->connect("_begin_node_move", this, "_begin_node_move");
 	graph->connect("_begin_node_move", this, "_begin_node_move");