summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-05-22 15:16:57 +0200
committerGitHub <noreply@github.com>2017-05-22 15:16:57 +0200
commita6122ce68b8bde8213661cd98658be92cc12895a (patch)
tree21b4199b89d138956462ca1da3c1bd8810b137b0
parent712fcbebfb619523cbca08fdba914f9d355222ee (diff)
parenta2ad2eedbb0517faab7d672d41cafe85b3bdab39 (diff)
Merge pull request #8862 from volzhs/editor-theme-margin
Fit grid with label and component of editor
-rw-r--r--scene/gui/box_container.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/box_container.cpp b/scene/gui/box_container.cpp
index e7f4a274d5..16b2cfa083 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)