summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-09-26 00:11:46 +0200
committerGitHub <noreply@github.com>2017-09-26 00:11:46 +0200
commitf577efd47ed2f0aa801155756e4ba5d5ea2d5f2b (patch)
tree05544efa89a521e0061f9ca82b57ccc69e0f5371 /modules
parente9e1753c3cf96015893d4d138d6f085995f00035 (diff)
parent05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 (diff)
Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
Diffstat (limited to 'modules')
-rw-r--r--modules/visual_script/visual_script_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index d0ab29f184..eea294e631 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -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");