diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2022-01-07 00:12:28 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-01-07 05:49:12 +0330 |
commit | 645712be3b54f98cf15f7a0758c4d1fd5a143aa5 (patch) | |
tree | ba5aafdb9f6431c4a53d8675d8b3b1ffc3c6b727 /Userland/Libraries | |
parent | f3b5f03b2ac012dd9840b398be2b5e81c094a980 (diff) | |
download | serenity-645712be3b54f98cf15f7a0758c4d1fd5a143aa5.zip |
EmojiInputDialog: Ensure that all buttons are equal width
Previously we only set the min size which meant that some emoji buttons
was larger than others :^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/EmojiInputDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp index 5553f0f3e5..2a0b269db6 100644 --- a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp +++ b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp @@ -64,7 +64,7 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window) builder.append(Utf32View(&code_points[index++], 1)); auto emoji_text = builder.to_string(); auto& button = horizontal_container.add<Button>(emoji_text); - button.set_min_size(16, 16); + button.set_fixed_size(16, 16); button.set_button_style(Gfx::ButtonStyle::Coolbar); button.on_click = [this, button = &button](auto) { m_selected_emoji_text = button->text(); |