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 --- editor/plugins/tile_set_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/tile_set_editor_plugin.cpp') diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index d81c6d3f96..cc4c21cc04 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -584,6 +584,7 @@ TileSetEditor::TileSetEditor(EditorNode *p_editor) { empty_message->set_valign(Label::VALIGN_CENTER); empty_message->set_align(Label::ALIGN_CENTER); empty_message->set_autowrap(true); + empty_message->set_custom_minimum_size(Size2(100 * EDSCALE, 0)); empty_message->set_v_size_flags(SIZE_EXPAND_FILL); main_vb->add_child(empty_message); -- cgit v1.2.3