From 05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Fri, 22 Sep 2017 00:12:33 +0200 Subject: Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) --- editor/plugins/material_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/material_editor_plugin.cpp') diff --git a/editor/plugins/material_editor_plugin.cpp b/editor/plugins/material_editor_plugin.cpp index d2767bf1b..c8d25808d 100644 --- a/editor/plugins/material_editor_plugin.cpp +++ b/editor/plugins/material_editor_plugin.cpp @@ -335,7 +335,7 @@ MaterialEditor::MaterialEditor() { HBoxContainer *hb = memnew( HBoxContainer ); add_child(hb); - hb->set_area_as_parent_rect(2); + hb->set_anchors_and_margins_preset(Control::PRESET_WIDE, Control::PRESET_MODE_MINSIZE, 2); VBoxContainer *vb_shape = memnew( VBoxContainer ); hb->add_child(vb_shape); -- cgit v1.2.3-70-g09d2