summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-10 18:55:20 +0100
committerGitHub <noreply@github.com>2021-12-10 18:55:20 +0100
commit9ef6b5c104ba1280fb9b22bad73f4a4a9d9c2b34 (patch)
tree7ad037e73c74166a73b6ff100186e0223ffc2310
parent3bfdb28ab2d948fd7e6ac1ea9fcb2b4b33e59e43 (diff)
parent1ff9ddeb27600abe6de172b5ee94c1c282c79e27 (diff)
Merge pull request #55797 from KoBeWi/internal_shenanigans
-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 fc05d51937..6aaa8433ec 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, false, INTERNAL_MODE_FRONT);
+ add_child(l);
MarginContainer *mc = memnew(MarginContainer);
mc->add_theme_constant_override("margin_left", 0);
mc->add_child(p_control, true);
- add_child(mc, false, INTERNAL_MODE_FRONT);
+ add_child(mc);
if (p_expand) {
mc->set_v_size_flags(SIZE_EXPAND_FILL);
}