Merge pull request #114797 from YeldhamDev/wrong_group_editor

Fix incorrect margin variations for group editors
This commit is contained in:
Thaddeus Crews 2026-01-09 10:34:53 -06:00
commit 996e1d14ec
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 7 additions and 3 deletions

View file

@ -912,7 +912,7 @@ GroupsEditor::GroupsEditor() {
hbc->add_child(filter);
MarginContainer *mc = memnew(MarginContainer);
mc->set_theme_type_variation("NoBorderHorizontalBottomWide");
mc->set_theme_type_variation("NoBorderHorizontalBottom");
mc->set_v_size_flags(SIZE_EXPAND_FILL);
holder->add_child(mc);

View file

@ -523,6 +523,11 @@ GroupSettingsEditor::GroupSettingsEditor() {
add_button->connect(SceneStringName(pressed), callable_mp(this, &GroupSettingsEditor::_add_group));
hbc->add_child(add_button);
MarginContainer *mc = memnew(MarginContainer);
mc->set_theme_type_variation("NoBorderHorizontalBottomWide");
mc->set_v_size_flags(SIZE_EXPAND_FILL);
add_child(mc);
tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true);
@ -539,9 +544,8 @@ GroupSettingsEditor::GroupSettingsEditor() {
tree->connect("item_edited", callable_mp(this, &GroupSettingsEditor::_item_edited));
tree->connect("item_activated", callable_mp(this, &GroupSettingsEditor::_show_rename_dialog));
tree->connect("button_clicked", callable_mp(this, &GroupSettingsEditor::_item_button_pressed));
tree->set_v_size_flags(SIZE_EXPAND_FILL);
add_child(tree, true);
mc->add_child(tree, true);
message = memnew(AcceptDialog);
add_child(message);