Переглянути джерело

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.
Sam Atkins 3 роки тому
батько
коміт
0fcb6920e3
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      Userland/Applications/Browser/BookmarksBarWidget.h

+ 6 - 0
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<GUI::UISize> calculated_min_size() const override
+    {
+        // Large enough to fit the `m_additional` button.
+        return GUI::UISize(20, 20);
+    }
+
 private:
     BookmarksBarWidget(String const&, bool enabled);