mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
Browser: Give BookmarksBarWidget a minimum size
Without this, it gets a minimum size that's very large and stops you from resizing the Browser window narrower than 609px.
This commit is contained in:
parent
fe60459353
commit
0fcb6920e3
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,12 @@ public:
|
||||||
bool add_bookmark(String const& url, String const& title);
|
bool add_bookmark(String const& url, String const& title);
|
||||||
bool edit_bookmark(String const& url);
|
bool edit_bookmark(String const& url);
|
||||||
|
|
||||||
|
virtual Optional<GUI::UISize> calculated_min_size() const override
|
||||||
|
{
|
||||||
|
// Large enough to fit the `m_additional` button.
|
||||||
|
return GUI::UISize(20, 20);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BookmarksBarWidget(String const&, bool enabled);
|
BookmarksBarWidget(String const&, bool enabled);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue