diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/ImageBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp index 975c99d47d..28a89d5098 100644 --- a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp @@ -60,8 +60,8 @@ void ImageBox::prepare_for_replaced_layout() auto alt = image_element.alt(); if (alt.is_empty()) alt = image_element.src(); - set_width(font.width(alt) + 16); - set_height(font.glyph_height() + 16); + set_intrinsic_width(font.width(alt) + 16); + set_intrinsic_height(font.glyph_height() + 16); } if (!has_intrinsic_width() && !has_intrinsic_height()) { |