From 6f185cc9f7d8f9880dec01be86cf129dd0a38b84 Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Tue, 26 Sep 2017 18:56:52 +0200 Subject: Remove unecessary anchors&margins set causing bad display (sons of containers) --- editor/editor_node.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'editor/editor_node.cpp') diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3069ba97f..21520875c 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5083,9 +5083,6 @@ EditorNode::EditorNode() { play_cc = memnew(CenterContainer); play_cc->set_mouse_filter(Control::MOUSE_FILTER_IGNORE); menu_hb->add_child(play_cc); - play_cc->set_anchors_and_margins_preset(Control::PRESET_WIDE); - play_cc->set_anchor_and_margin(MARGIN_BOTTOM, Control::ANCHOR_BEGIN, 10); - play_cc->set_margin(MARGIN_TOP, 5); play_button_panel = memnew(PanelContainer); // play_button_panel->add_style_override("panel", gui_base->get_stylebox("PlayButtonPanel", "EditorStyles")); -- cgit v1.2.3-70-g09d2