properly align the refresh and connect button in the server browser. closes #1701

This commit is contained in:
oy 2018-11-21 21:01:29 +01:00
parent 64e5165eef
commit 9d3ec8355c

View file

@ -2080,8 +2080,8 @@ void CMenus::RenderServerbrowser(CUIRect MainView)
CUIRect ServerList, Sidebar, BottomBox, SidebarButton;
MainView.HSplitTop(20.0f, 0, &MainView);
MainView.VSplitRight(20.0f, &MainView, &SidebarButton);
MainView.HSplitBottom(80.0f, &ServerList, &MainView);
ServerList.VSplitRight(20.0f, &ServerList, &SidebarButton);
if(m_SidebarActive)
ServerList.VSplitRight(150.0f, &ServerList, &Sidebar);
@ -2103,14 +2103,11 @@ void CMenus::RenderServerbrowser(CUIRect MainView)
float Spacing = 3.0f;
float ButtonWidth = (MainView.w/6.0f)-(Spacing*5.0)/6.0f;
MainView.VSplitRight(ButtonWidth+Spacing, &MainView, 0);
MainView.HSplitBottom(60.0f, 0, &BottomBox);
BottomBox.VSplitRight(ButtonWidth*2.0f+Spacing, 0, &BottomBox);
// connect box
{
RenderServerbrowserBottomBox(BottomBox);
}
// back button
RenderBackButton(MainView);