Merge pull request #9325 from LunaMoo/UIvertical

Fix vertical layout on main screen.
This commit is contained in:
Henrik Rydgård 2017-02-19 08:56:15 +01:00 committed by GitHub
commit e42bce5568

View file

@ -857,7 +857,7 @@ void MainScreen::CreateViews() {
if (vertical) {
root_ = new LinearLayout(ORIENT_VERTICAL);
rightColumn->ReplaceLayoutParams(new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
rightColumn->ReplaceLayoutParams(new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 0.75));
leftColumn->ReplaceLayoutParams(new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0));
root_->Add(rightColumn);
root_->Add(leftColumn);