mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 02:16:39 +02:00
No need to use a TextLayout here, we can just count the number of lines and multiply that by the font's preferred line height. In addition to being much simpler, it also fixes a bug where labels were got too tall if we calculated their preferred height before assigning a final width to them.
3.5 KiB
3.5 KiB