Skip to content

Commit 8a64854

Browse files
authored
Fix button misalignments in the settings menu (#4534)
Fix settings gui
1 parent 9a5c916 commit 8a64854

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/core/CSettings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,8 @@ void CSettings::CreateGUI()
540540
return;
541541
CVector2D buttonSize;
542542
button->GetSize(buttonSize);
543-
const float bottomPadding = 12.0f;
544-
const float buttonY = std::max(0.0f, tabPanelSize.fY - buttonSize.fY - bottomPadding);
543+
const float bottomPadding = 32.0f;
544+
const float buttonY = std::max(0.0f, tabPanelSize.fY - buttonSize.fY - bottomPadding - 4.0f);
545545
button->SetPosition(CVector2D(std::max(0.0f, tabPanelSize.fX - buttonSize.fX - bottomPadding), buttonY));
546546
};
547547

@@ -1586,7 +1586,7 @@ void CSettings::CreateGUI()
15861586
m_pGridBrowserBlacklist->SetPosition(CVector2D(vecTemp.fX, vecTemp.fY + 32.0f));
15871587
m_pGridBrowserBlacklist->GetPosition(vecTemp);
15881588
const CVector2D blacklistGridPos = vecTemp;
1589-
const float browserBottomPadding = 12.0f;
1589+
const float browserBottomPadding = 32.0f;
15901590
const float browserButtonSpacing = 5.0f;
15911591
const CVector2D blacklistRemoveSize(140.0f, 22.0f);
15921592
const float blacklistHeightAvailable = tabPanelSize.fY - blacklistGridPos.fY - blacklistRemoveSize.fY - browserButtonSpacing - browserBottomPadding;

0 commit comments

Comments
 (0)