Skip to content

Commit bfffdcc

Browse files
Synchronize changes from 1.6 branch [ci skip]
9f79d78 Fix button misalignments in the settings menu (#4534)
2 parents b55eaf8 + 9f79d78 commit bfffdcc

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
@@ -539,8 +539,8 @@ void CSettings::CreateGUI()
539539
return;
540540
CVector2D buttonSize;
541541
button->GetSize(buttonSize);
542-
const float bottomPadding = 12.0f;
543-
const float buttonY = std::max(0.0f, tabPanelSize.fY - buttonSize.fY - bottomPadding);
542+
const float bottomPadding = 32.0f;
543+
const float buttonY = std::max(0.0f, tabPanelSize.fY - buttonSize.fY - bottomPadding - 4.0f);
544544
button->SetPosition(CVector2D(std::max(0.0f, tabPanelSize.fX - buttonSize.fX - bottomPadding), buttonY));
545545
};
546546

@@ -1577,7 +1577,7 @@ void CSettings::CreateGUI()
15771577
m_pGridBrowserBlacklist->SetPosition(CVector2D(vecTemp.fX, vecTemp.fY + 32.0f));
15781578
m_pGridBrowserBlacklist->GetPosition(vecTemp);
15791579
const CVector2D blacklistGridPos = vecTemp;
1580-
const float browserBottomPadding = 12.0f;
1580+
const float browserBottomPadding = 32.0f;
15811581
const float browserButtonSpacing = 5.0f;
15821582
const CVector2D blacklistRemoveSize(140.0f, 22.0f);
15831583
const float blacklistHeightAvailable = tabPanelSize.fY - blacklistGridPos.fY - blacklistRemoveSize.fY - browserButtonSpacing - browserBottomPadding;

0 commit comments

Comments
 (0)