From 0fcb6920e377aeff2a80f734f0f16f950432d164 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 21 Jul 2022 17:22:43 +0100 Subject: [PATCH] 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. --- Userland/Applications/Browser/BookmarksBarWidget.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Userland/Applications/Browser/BookmarksBarWidget.h b/Userland/Applications/Browser/BookmarksBarWidget.h index 8ee173c59a..9a19b92c31 100644 --- a/Userland/Applications/Browser/BookmarksBarWidget.h +++ b/Userland/Applications/Browser/BookmarksBarWidget.h @@ -39,6 +39,12 @@ public: bool add_bookmark(String const& url, String const& title); bool edit_bookmark(String const& url); + virtual Optional calculated_min_size() const override + { + // Large enough to fit the `m_additional` button. + return GUI::UISize(20, 20); + } + private: BookmarksBarWidget(String const&, bool enabled);