From 39afbceb53afb5e3f9b8be2b4f7b711e3fda6b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Musab=20K=C4=B1l=C4=B1=C3=A7?= Date: Fri, 29 Oct 2021 17:09:47 +0300 Subject: [PATCH] Minesweeper: Set time label to a fixed width This ensures the label width doesn't sporadically change as time elapses --- Userland/Games/Minesweeper/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Games/Minesweeper/main.cpp b/Userland/Games/Minesweeper/main.cpp index cfd82d38fa..7686e2306d 100644 --- a/Userland/Games/Minesweeper/main.cpp +++ b/Userland/Games/Minesweeper/main.cpp @@ -88,7 +88,7 @@ int main(int argc, char** argv) time_image.set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/minesweeper/timer.png")); auto& time_label = container.add(); - time_label.set_autosize(true); + time_label.set_fixed_width(50); time_label.set_text_alignment(Gfx::TextAlignment::CenterLeft); container.layout()->add_spacer();