Skip to content

Commit

Permalink
Fix search results overlapping (#1648)
Browse files Browse the repository at this point in the history
Changes in be8568 commit caused that under certain circumstances search
results may overlap "Search the Internet" item.
  • Loading branch information
ge0rdi committed Aug 16, 2023
1 parent 4047d72 commit 8f1a696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/StartMenu/StartMenuDLL/MenuContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2769,8 +2769,8 @@ bool CMenuContainer::InitSearchItems( void )
itemHeight=s_Skin.ItemSettings[MenuSkin::LIST_ITEM].itemHeight;
// total height minus the search box and the "more results"/"search internet", if present
maxHeight=m_Items[m_SearchIndex].itemRect.top-s_Skin.Main_search_padding.top-s_Skin.Search_padding.top;
maxHeight-=itemHeight*(m_SearchItemCount-(s_bMoreResults?1:2));
if (!s_SearchResults.bSearching && !HasMoreResults())
maxHeight-=itemHeight*(m_SearchItemCount-1);
if (!s_bMoreResults || (!s_SearchResults.bSearching && !HasMoreResults()))
maxHeight+=itemHeight;
}
if (bAutoComlpete)
Expand Down Expand Up @@ -2983,7 +2983,7 @@ bool CMenuContainer::InitSearchItems( void )
else
{
m_ScrollCount=(int)m_Items.size();
bool bInternet=GetSettingBool(L"SearchInternet");
bool bInternet=GetSettingBool(L"SearchInternet");
if (s_bMoreResults && s_SearchResults.bSearching)
{
MenuItem item(MENU_SEARCH_EMPTY);
Expand Down

0 comments on commit 8f1a696

Please sign in to comment.