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/Demos | |
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/Demos')
-rw-r--r-- | Userland/Demos/Mandelbrot/Mandelbrot.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Demos/Mandelbrot/Mandelbrot.cpp b/Userland/Demos/Mandelbrot/Mandelbrot.cpp index 586cd5212d..53667bc76e 100644 --- a/Userland/Demos/Mandelbrot/Mandelbrot.cpp +++ b/Userland/Demos/Mandelbrot/Mandelbrot.cpp @@ -409,6 +409,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto window = TRY(GUI::Window::try_create()); window->set_double_buffering_enabled(false); window->set_title("Mandelbrot"); + window->set_obey_widget_min_size(false); window->set_minimum_size(320, 240); window->resize(window->minimum_size() * 2); auto mandelbrot = TRY(window->try_set_main_widget<Mandelbrot>()); |