From 850b5b03efd92c4fa8f4457adf8ab8a313923798 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 11 Mar 2024 13:24:19 +0100 Subject: [PATCH] Fix the sizing of LayeredTileSourceInspectorPlugin's show_id_edit_dialog. --- modules/layered_tile_map/editor/layered_tile_set_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp index 469df805e..487818109 100644 --- a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp @@ -1013,6 +1013,7 @@ void LayeredTileSourceInspectorPlugin::_show_id_edit_dialog(Object *p_for_source Label *label = memnew(Label(TTR("Warning: Modifying a source ID will result in all LayeredTileMaps using that source to reference an invalid source instead. This may result in unexpected data loss. Change this ID carefully."))); label->set_autowrap(true); + label->set_custom_minimum_size(Vector2(400, 0) * EDSCALE); vbox->add_child(label); id_input = memnew(SpinBox); @@ -1023,7 +1024,9 @@ void LayeredTileSourceInspectorPlugin::_show_id_edit_dialog(Object *p_for_source } edited_source = p_for_source; id_input->set_value(p_for_source->get("id")); - id_edit_dialog->popup_centered(Vector2i(400, 0) * EDSCALE); + + //id_edit_dialog->popup_centered(Vector2i(400, 0) * EDSCALE); + id_edit_dialog->popup_centered(); id_input->get_line_edit()->call_deferred("grab_focus"); }