From 13c88878c4c6daae1f5ce83b516f15fdd8a45dd6 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Mon, 4 Nov 2019 10:12:15 +0100 Subject: Fixed cases where labels with autowrap can overflow the editor ui Fixes #33155 --- modules/gridmap/grid_map_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp index f79aea9531..1bd570c55f 100644 --- a/modules/gridmap/grid_map_editor_plugin.cpp +++ b/modules/gridmap/grid_map_editor_plugin.cpp @@ -1330,6 +1330,7 @@ GridMapEditor::GridMapEditor(EditorNode *p_editor) { info_message->set_valign(Label::VALIGN_CENTER); info_message->set_align(Label::ALIGN_CENTER); info_message->set_autowrap(true); + info_message->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); info_message->set_anchors_and_margins_preset(PRESET_WIDE, PRESET_MODE_KEEP_SIZE, 8 * EDSCALE); mesh_library_palette->add_child(info_message); -- cgit v1.2.3