瀏覽代碼

Fix visual script editor interface

K. S. Ernest (iFire) Lee 7 年之前
父節點
當前提交
e0510369d6
共有 1 個文件被更改,包括 1 次插入0 次删除
  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");