Skip to content

Commit

Permalink
just expand it when a server is selected
Browse files Browse the repository at this point in the history
oy committed Nov 16, 2018
1 parent f9524e7 commit 4af6b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/menus_browser.cpp
Original file line number Diff line number Diff line change
@@ -1092,7 +1092,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
float ListHeight = NumServers * ms_ListheaderHeight; // add server list height
ListHeight += NumFilters * SpacingH; // add filters
ListHeight += (NumFilters) * ButtonHeight;// add filters spacing
if(!m_SidebarActive)
if(!m_SidebarActive && m_SelectedServer.m_Index != -1)
ListHeight += ms_ListheaderHeight*5;

// float LineH = ms_aBrowserCols[0].m_Rect.h;

1 comment on commit 4af6b33

@Dune-jr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this isn't enough: when all filters are closed, there is still a selected server.

Please sign in to comment.