mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
WindowServer: Round menu item font sizes up when calculating height
This commit is contained in:
parent
dd8d65ada0
commit
c8b286084b
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ int Menu::content_width() const
|
||||||
|
|
||||||
int Menu::item_height() 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()
|
void Menu::redraw()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue