From 0b55eedc522ded7b889970ee1daa20435e11c847 Mon Sep 17 00:00:00 2001 From: Navdeep Singh Rathore Date: Wed, 15 Sep 2021 13:50:10 +0530 Subject: [PATCH] Added the smart word wrap property to preview label --- editor/rename_dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/rename_dialog.cpp b/editor/rename_dialog.cpp index d86e2656d47..d23c8bed22f 100644 --- a/editor/rename_dialog.cpp +++ b/editor/rename_dialog.cpp @@ -287,6 +287,7 @@ RenameDialog::RenameDialog(SceneTreeEditor *p_scene_tree_editor, UndoRedo *p_und vbc->add_child(lbl_preview_title); lbl_preview = memnew(Label); + lbl_preview->set_autowrap_mode(Label::AUTOWRAP_WORD_SMART); vbc->add_child(lbl_preview); // ---- Dialog related