mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Merge pull request #8862 from volzhs/editor-theme-margin
Fit grid with label and component of editor
This commit is contained in:
commit
a6122ce68b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user