mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibGUI: Fix MessageBox width calculation not including the icon width
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user