1
Fork 0
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:
Andreas Kling 2020-06-18 22:18:19 +02:00
parent 07b06cdc7e
commit 033da11364

View file

@ -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);