From a2ad2eedbb0517faab7d672d41cafe85b3bdab39 Mon Sep 17 00:00:00 2001 From: volzhs Date: Mon, 22 May 2017 20:25:19 +0900 Subject: [PATCH] Fit grid with label and component of editor --- scene/gui/box_container.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/box_container.cpp b/scene/gui/box_container.cpp index e7f4a274d5e..16b2cfa0836 100644 --- a/scene/gui/box_container.cpp +++ b/scene/gui/box_container.cpp @@ -308,6 +308,7 @@ MarginContainer *VBoxContainer::add_margin_child(const String &p_label, Control l->set_text(p_label); add_child(l); MarginContainer *mc = memnew(MarginContainer); + mc->add_constant_override("margin_left", 0); mc->add_child(p_control); add_child(mc); if (p_expand)