summaryrefslogtreecommitdiff
path: root/scene/gui/box_container.cpp
diff options
context:
space:
mode:
authordarth negative hunter <73083466+thenegativehunter2@users.noreply.github.com>2021-08-30 13:04:14 +0430
committerGitHub <noreply@github.com>2021-08-30 13:04:14 +0430
commit24066b3c7ac9277348ccc2aabb7235cde1db88bd (patch)
tree66c5ae11bd21d9bf15e505399aa53e8de1d2dfa7 /scene/gui/box_container.cpp
parent3afabb8f17c1b031a28ce87d40024078a6ee69b2 (diff)
parent61d681cfb9a89f5c32a6c85e8f1cf53360c6eddb (diff)
Merge branch 'godotengine:master' into master_texture_array_normal_added
Diffstat (limited to 'scene/gui/box_container.cpp')
-rw-r--r--scene/gui/box_container.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/box_container.cpp b/scene/gui/box_container.cpp
index a2f1d2b15a..cf2df4e1a2 100644
--- a/scene/gui/box_container.cpp
+++ b/scene/gui/box_container.cpp
@@ -351,11 +351,11 @@ MarginContainer *VBoxContainer::add_margin_child(const String &p_label, Control
Label *l = memnew(Label);
l->set_theme_type_variation("HeaderSmall");
l->set_text(p_label);
- add_child(l);
+ add_child(l, false, INTERNAL_MODE_FRONT);
MarginContainer *mc = memnew(MarginContainer);
mc->add_theme_constant_override("margin_left", 0);
mc->add_child(p_control);
- add_child(mc);
+ add_child(mc, false, INTERNAL_MODE_FRONT);
if (p_expand) {
mc->set_v_size_flags(SIZE_EXPAND_FILL);
}