summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/EmojiInputDialog.cpp
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2022-01-07 00:12:28 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-07 05:49:12 +0330
commit645712be3b54f98cf15f7a0758c4d1fd5a143aa5 (patch)
treeba5aafdb9f6431c4a53d8675d8b3b1ffc3c6b727 /Userland/Libraries/LibGUI/EmojiInputDialog.cpp
parentf3b5f03b2ac012dd9840b398be2b5e81c094a980 (diff)
downloadserenity-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/LibGUI/EmojiInputDialog.cpp')
-rw-r--r--Userland/Libraries/LibGUI/EmojiInputDialog.cpp2
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();