Merge pull request #11424 from groud/control_node_presets

Implements set_margins_preset(...)
This commit is contained in:
Rémi Verschelde
2017-09-26 00:11:46 +02:00
committed by GitHub

View File

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