From 5c94eeeb793417f74f86b4aa57344396d3ad5795 Mon Sep 17 00:00:00 2001 From: Zher Huei Lee Date: Sat, 12 Aug 2017 15:32:06 +0800 Subject: [PATCH] Project manager UI displaced by long paths #10245 --- editor/project_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index b77544befa9..dc0c888eeab 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -848,6 +848,7 @@ void ProjectManager::_load_recent_projects() { VBoxContainer *vb = memnew(VBoxContainer); vb->set_name("project"); + vb->set_h_size_flags(SIZE_EXPAND_FILL); hb->add_child(vb); Control *ec = memnew(Control); ec->set_custom_minimum_size(Size2(0, 1)); @@ -855,12 +856,14 @@ void ProjectManager::_load_recent_projects() { Label *title = memnew(Label(project_name)); title->add_font_override("font", gui_base->get_font("large", "Fonts")); title->add_color_override("font_color", font_color); + title->set_clip_text(true); vb->add_child(title); Label *fpath = memnew(Label(path)); fpath->set_name("path"); vb->add_child(fpath); fpath->set_modulate(Color(1, 1, 1, 0.5)); fpath->add_color_override("font_color", font_color); + fpath->set_clip_text(true); scroll_childs->add_child(hb); }