mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
Browser: Always show menu for additional bookmarks when one is hidden
This patch fixes the additional bookmarks menu button getting pushed all they way to the right until a bookmark is out of bounds of the bar by instead collapsing a bookmark into the menu as soon as it intersects with the additional button.
This commit is contained in:
parent
a506ec08d8
commit
d034675032
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/d034675032 Pull-request: https://github.com/SerenityOS/serenity/pull/14147 Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ void BookmarksBarWidget::update_content_size()
|
|||
|
||||
for (size_t i = 0; i < m_bookmarks.size(); ++i) {
|
||||
auto& bookmark = m_bookmarks.at(i);
|
||||
if (x_position + bookmark.width() > width()) {
|
||||
if (x_position + bookmark.width() + m_additional->width() > width()) {
|
||||
m_last_visible_index = i;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue