summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/EmojiInputDialog.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-08-17 19:38:46 -0400
committerAndreas Kling <kling@serenityos.org>2022-08-25 13:28:50 +0200
commitf833473df0f73bbd29febee882b989102705e21d (patch)
treefacf9fabb5cb46badd304a7a5553394bf93dba97 /Userland/Libraries/LibGUI/EmojiInputDialog.cpp
parent46d6347035357fb6ec49e21326e358e2e54557c8 (diff)
downloadserenity-f833473df0f73bbd29febee882b989102705e21d.zip
Apps+Demos+Dialogs: Remove unnecessary minimum window sizes
The new layout system conveniently calculates these for us now. In the case of Mandelbrot where it needs to be overriden, make sure to disable obey min widget size first. In EmojiInputDialog's case, the window needs to be resized instead to center correctly.
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 caa60b9b98..d586ddd93e 100644
--- a/Userland/Libraries/LibGUI/EmojiInputDialog.cpp
+++ b/Userland/Libraries/LibGUI/EmojiInputDialog.cpp
@@ -62,7 +62,7 @@ EmojiInputDialog::EmojiInputDialog(Window* parent_window)
int dialog_width = button_size * columns + magic_offset;
int dialog_height = button_size * rows;
- set_minimum_size(dialog_width, dialog_height);
+ resize(dialog_width, dialog_height);
set_frameless(true);
for (size_t row = 0; row < rows && index < code_points.size(); ++row) {