UI: Add scroll to savedata viewer for long descs.

This commit is contained in:
Unknown W. Brackets committed 2021-10-05 23:50:21 -07:00
1 parent 7dde8ef9f3
commit e8a83269bb
1 file changed
+5 -2
+5 -2
View File
@@ -87,10 +87,13 @@ public:
const Style &textStyle = dc.theme->popupStyle;
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), savePath_, GAMEINFO_WANTBG | GAMEINFO_WANTSIZE);
LinearLayout *content = new LinearLayout(ORIENT_VERTICAL);
parent->Add(content);
if (!ginfo)
return;
ScrollView *contentScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT, 1.0f));
LinearLayout *content = new LinearLayout(ORIENT_VERTICAL);
parent->Add(contentScroll);
contentScroll->Add(content);
LinearLayout *toprow = new LinearLayout(ORIENT_HORIZONTAL, new LayoutParams(FILL_PARENT, WRAP_CONTENT));
content->Add(toprow);