1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fixed cases where labels with autowrap can overflow the editor ui

Fixes #33155
This commit is contained in:
PouleyKetchoupp
2019-11-04 10:12:15 +01:00
parent 5dac35a300
commit 13c88878c4
7 changed files with 16 additions and 3 deletions

View File

@@ -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);