Skip to content

Commit

Permalink
UI: Fix dev menu scroll on small screens.
Browse files Browse the repository at this point in the history
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 5ea54d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/DevScreens.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void DevMenu::CreatePopupContents(UI::ViewGroup *parent) {
I18NCategory *dev = GetI18NCategory("Developer"); I18NCategory *dev = GetI18NCategory("Developer");
I18NCategory *sy = GetI18NCategory("System"); 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); LinearLayout *items = new LinearLayout(ORIENT_VERTICAL);


#if !defined(MOBILE_DEVICE) #if !defined(MOBILE_DEVICE)
Expand Down

0 comments on commit 5ea54d9

Please sign in to comment.