mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
Minesweeper: Set time label to a fixed width
This ensures the label width doesn't sporadically change as time elapses
This commit is contained in:
parent
7eaac7d2c1
commit
39afbceb53
Notes:
sideshowbarker
2024-07-18 01:45:43 +09:00
Author: https://github.com/musabkilic
Commit: 39afbceb53
Pull-request: https://github.com/SerenityOS/serenity/pull/10682
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 1 additions and 1 deletions
|
@ -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<GUI::Label>();
|
||||
time_label.set_autosize(true);
|
||||
time_label.set_fixed_width(50);
|
||||
time_label.set_text_alignment(Gfx::TextAlignment::CenterLeft);
|
||||
|
||||
container.layout()->add_spacer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue