Skip to content

Commit

Permalink
UI/Qt: Set a minimum size policy for the navigation control toolbar
Browse files Browse the repository at this point in the history
This prevents the user being able to shrink the window to the point
that the location bar and other controls are no longer visible.
  • Loading branch information
tcl3 committed Jul 8, 2024
1 parent 63a5ff7 commit 82dc5d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ladybird/Qt/Tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Tab::Tab(BrowserWindow* window, WebContentOptions const& web_content_options, St
m_toolbar->addAction(&m_window->reload_action());
m_toolbar->addWidget(m_location_edit);
m_toolbar->addAction(&m_window->new_tab_action());
m_toolbar->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
m_hamburger_button_action = m_toolbar->addWidget(m_hamburger_button);
m_toolbar->setIconSize({ 16, 16 });
// This is a little awkward, but without this Qt shrinks the button to the size of the icon.
Expand Down

0 comments on commit 82dc5d8

Please sign in to comment.