diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-08-17 19:38:46 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-25 13:28:50 +0200 |
commit | f833473df0f73bbd29febee882b989102705e21d (patch) | |
tree | facf9fabb5cb46badd304a7a5553394bf93dba97 /Userland/Libraries | |
parent | 46d6347035357fb6ec49e21326e358e2e54557c8 (diff) | |
download | serenity-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')
-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 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) { |