mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
WindowServer: Fix off-by-one in menu height calculation
This removes the unecessary empty scanline at the bottom of menus and makes it look nice and tidy when the bottom item is highlighted. :^)
This commit is contained in:
parent
a3788f1297
commit
4ec698d1b0
Notes:
sideshowbarker
2024-07-19 12:29:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4ec698d1b01
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ int WSMenu::height() const
|
|||
{
|
||||
if (m_items.is_empty())
|
||||
return 0;
|
||||
return (m_items.last().rect().bottom() - 1) + frame_thickness() * 2;
|
||||
return (m_items.last().rect().bottom() + 1) + frame_thickness();
|
||||
}
|
||||
|
||||
void WSMenu::redraw()
|
||||
|
|
Loading…
Add table
Reference in a new issue