aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/animation_player_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-26 00:11:46 +0200
committerGitHub2017-09-26 00:11:46 +0200
commitf577efd47ed2f0aa801155756e4ba5d5ea2d5f2b (patch)
tree05544efa89a521e0061f9ca82b57ccc69e0f5371 /editor/plugins/animation_player_editor_plugin.cpp
parente9e1753c3cf96015893d4d138d6f085995f00035 (diff)
parent05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 (diff)
downloadgodot-f577efd47ed2f0aa801155756e4ba5d5ea2d5f2b.tar.gz
godot-f577efd47ed2f0aa801155756e4ba5d5ea2d5f2b.tar.zst
godot-f577efd47ed2f0aa801155756e4ba5d5ea2d5f2b.zip
Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
Diffstat (limited to 'editor/plugins/animation_player_editor_plugin.cpp')
-rw-r--r--editor/plugins/animation_player_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp
index de905d80e..bdfe38021 100644
--- a/editor/plugins/animation_player_editor_plugin.cpp
+++ b/editor/plugins/animation_player_editor_plugin.cpp
@@ -1426,7 +1426,7 @@ AnimationPlayerEditorPlugin::AnimationPlayerEditorPlugin(EditorNode *p_node) {
editor->add_bottom_panel_item(TTR("Animation"), anim_editor);
/*
editor->get_viewport()->add_child(anim_editor);
- anim_editor->set_area_as_parent_rect();
+ anim_editor->set_anchors_and_margins_preset(Control::PRESET_WIDE);
anim_editor->set_anchor( MARGIN_TOP, Control::ANCHOR_END);
anim_editor->set_margin( MARGIN_TOP, 75 );
anim_editor->set_anchor( MARGIN_RIGHT, Control::ANCHOR_END);