mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
WindowServer: Round menu item font sizes up when calculating height
This commit is contained in:
parent
dd8d65ada0
commit
c8b286084b
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/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
|
||||
{
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue