Don't let the tabs overflow into the right area of the main screen if small resolution.

Update native with new tab look.
This commit is contained in:
Henrik Rydgard committed 2013-08-20 12:28:17 +02:00
1 parent 72f597f247
commit ca76135273
3 files changed
+8 -2

No files matched your search

+3
View File
@@ -351,6 +351,8 @@ void GameBrowser::Refresh() {
// Kill all the contents
Clear();
Add(new Spacer(5.0f));
if (allowBrowsing_) {
LinearLayout *topBar = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
topBar->Add(new TextView(path_.GetFriendlyPath().c_str(), ALIGN_VCENTER, 0.7f, new LinearLayoutParams(WRAP_CONTENT, FILL_PARENT, 1.0f)));
@@ -466,6 +468,7 @@ void MainScreen::CreateViews() {
root_ = new LinearLayout(ORIENT_HORIZONTAL);
TabHolder *leftColumn = new TabHolder(ORIENT_HORIZONTAL, 64, new LinearLayoutParams(1.0));
leftColumn->SetClip(true);
root_->Add(leftColumn);
ScrollView *scrollRecentGames = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));