mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
WindowServer: Menu windows should be at least as wide as their menubar rects.
This commit is contained in:
parent
5f288014d4
commit
78fc7a9ef2
1 changed files with 1 additions and 2 deletions
|
@ -33,7 +33,7 @@ int WSMenu::width() const
|
|||
longest = max(longest, font().width(item->text()));
|
||||
}
|
||||
|
||||
return max(longest, 80) + padding() * 2;
|
||||
return max(longest, rect_in_menubar().width()) + padding() * 2;
|
||||
}
|
||||
|
||||
int WSMenu::height() const
|
||||
|
@ -72,7 +72,6 @@ WSWindow& WSMenu::ensure_menu_window()
|
|||
return *m_menu_window;
|
||||
}
|
||||
|
||||
|
||||
void WSMenu::draw()
|
||||
{
|
||||
ASSERT(menu_window());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue