1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibGUI: Remove usages of deprecated implicit conversions

This commit is contained in:
FrHun 2022-06-12 23:17:42 +02:00 committed by Sam Atkins
parent 8dd08d47f1
commit 603034759f
5 changed files with 13 additions and 12 deletions

View file

@ -176,7 +176,8 @@ void MessageBox::build()
int width = (button_count * button_width) + ((button_count - 1) * button_container.layout()->spacing()) + 32;
width = max(width, text_width + icon_width + 56);
set_rect(x(), y(), width, 80 + label.max_height());
// FIXME: Use shrink from new layout system
set_rect(x(), y(), width, 80 + label.preferred_height());
set_resizable(false);
}