1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

WindowServer: Round menu item font sizes up when calculating height

This commit is contained in:
Andreas Kling 2023-01-06 11:28:09 +01:00
parent dd8d65ada0
commit c8b286084b

View file

@ -95,7 +95,7 @@ int Menu::content_width() const
int Menu::item_height() const
{
return max(font().preferred_line_height(), s_item_icon_width + 2) + 4;
return max(static_cast<int>(ceilf(font().preferred_line_height())), s_item_icon_width + 2) + 4;
}
void Menu::redraw()