mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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.
This commit is contained in:
committed by
Andreas Kling
parent
46d6347035
commit
f833473df0
Notes:
sideshowbarker
2024-07-17 07:47:36 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/f833473df0 Pull-request: https://github.com/SerenityOS/serenity/pull/15009 Issue: https://github.com/SerenityOS/serenity/issues/10970 Issue: https://github.com/SerenityOS/serenity/issues/13036
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user