mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
WindowServer: Menu windows should be at least as wide as their menubar rects.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user