Permalink
Browse files

UI: Fix dev menu scroll on small screens.

The scroll thought it could be as tall as the screen, due to FILL_PARENT.
Maybe that should always use a weight...
  • Loading branch information...
unknownbrackets committed Dec 30, 2017
1 parent b9cd883 commit 5ea54d991ed16fbf9d4e48d3ca8e02525c48f723
Showing with 1 addition and 1 deletion.
  1. +1 −1 UI/DevScreens.cpp
View
@@ -60,7 +60,7 @@ void DevMenu::CreatePopupContents(UI::ViewGroup *parent) {
I18NCategory *dev = GetI18NCategory("Developer");
I18NCategory *sy = GetI18NCategory("System");
ScrollView *scroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
ScrollView *scroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f));
LinearLayout *items = new LinearLayout(ORIENT_VERTICAL);
#if !defined(MOBILE_DEVICE)

0 comments on commit 5ea54d9

Please sign in to comment.