Skip to content

Commit 5756a5b

Browse files
committed
Fix layout issue that will happen when we increase the number of save state slots.
See issue #21082
1 parent 09523ba commit 5756a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/PauseScreen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ SaveSlotView::SaveSlotView(const Path &gameFilename, int slot, UI::LayoutParams
232232
std::string number = StringFromFormat("%d", slot + 1);
233233
Add(new Spacer(5));
234234

235-
Add(new TextView(number, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT, 0.0f, Gravity::G_VCENTER)))->SetBig(true);
235+
Add(new TextView(number, new LinearLayoutParams(40.0f, WRAP_CONTENT, 0.0f, Gravity::G_VCENTER)))->SetBig(true);
236236

237237
AsyncImageFileView *fv = Add(new AsyncImageFileView(screenshotFilename_, IS_DEFAULT, new UI::LayoutParams(82 * 2, 47 * 2)));
238238

0 commit comments

Comments
 (0)