mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibGUI: Use new layout system for basic widgets
This commit is contained in:
parent
bfbaad9f41
commit
19fac58e49
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/frhun
Commit: 19fac58e49
Pull-request: https://github.com/SerenityOS/serenity/pull/14261
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/mjz19910
17 changed files with 85 additions and 18 deletions
|
@ -177,7 +177,7 @@ void MessageBox::build()
|
|||
width = max(width, text_width + icon_width + 56);
|
||||
|
||||
// FIXME: Use shrink from new layout system
|
||||
set_rect(x(), y(), width, 80 + label.preferred_height());
|
||||
set_rect(x(), y(), width, 80 + label.text_calculated_preferred_height());
|
||||
set_resizable(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue