1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

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 :^)
This commit is contained in:
Filiph Sandström 2022-01-07 00:12:28 +01:00 committed by Ali Mohammad Pur
parent f3b5f03b2a
commit 645712be3b

View file

@ -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();