mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibGUI: Fix MessageBox width calculation not including the icon width
This commit is contained in:
parent
07b06cdc7e
commit
033da11364
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ void MessageBox::build()
|
|||
if (m_type != Type::None) {
|
||||
auto& icon_image = message_container.add<Image>();
|
||||
icon_image.set_bitmap(icon());
|
||||
if (icon())
|
||||
icon_width = icon()->width();
|
||||
}
|
||||
|
||||
auto& label = message_container.add<Label>(m_text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue