Skip to content

Commit

Permalink
fixed server browser scrollbar when sidebar is closed
Browse files Browse the repository at this point in the history
oy committed Nov 16, 2018
1 parent efecf33 commit f9524e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/client/components/menus_browser.cpp
Original file line number Diff line number Diff line change
@@ -1092,6 +1092,8 @@ 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)
ListHeight += ms_ListheaderHeight*5;

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

2 comments on commit f9524e7

@Dune-jr
Copy link
Member

@Dune-jr Dune-jr commented on f9524e7 Nov 16, 2018

Choose a reason for hiding this comment

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

@oy I don't understand why the list should get bigger when the sidebar is closed?

Edit: oh nevermind, surely it's for the expandable server info.

@oy
Copy link
Member Author

@oy oy commented on f9524e7 Nov 16, 2018

Choose a reason for hiding this comment

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

The server info is displayed, though just when you have selected an entry.

Please sign in to comment.