From 5a01bb78360cbd2a57d6e326d66d6d01c2c1ee11 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 22 Jan 2016 21:58:03 -0800 Subject: [PATCH] Expand game browser path to fit available space. Before it just was saying it wanted to be flexible. --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index f22e7b30c1..e9a52026be 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -467,7 +467,7 @@ void GameBrowser::Refresh() { if (allowBrowsing_) { topBar->Add(new Spacer(2.0f)); Margins pathMargins(5, 0); - topBar->Add(new TextView(path_.GetFriendlyPath().c_str(), ALIGN_VCENTER, true, new LinearLayoutParams(1.0f))); + topBar->Add(new TextView(path_.GetFriendlyPath().c_str(), ALIGN_VCENTER, true, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f))); #if defined(_WIN32) || defined(USING_QT_UI) topBar->Add(new Choice(mm->T("Browse", "Browse...")))->OnClick.Handle(this, &GameBrowser::HomeClick); #else