mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-14 07:35:10 +01:00
Add missing row width calculation
This commit is contained in:
@@ -176,6 +176,8 @@ public class VirtualKeyboardScreen extends SpruceScreen {
|
|||||||
private int calculateRowWidth(List<String> row) {
|
private int calculateRowWidth(List<String> row) {
|
||||||
int rowWidth = 0;
|
int rowWidth = 0;
|
||||||
for (int i = 0; i < row.size(); i++) {
|
for (int i = 0; i < row.size(); i++) {
|
||||||
|
rowWidth += STANDARD_KEY_WIDTH;
|
||||||
|
// padding
|
||||||
if (i < row.size() - 1) {
|
if (i < row.size() - 1) {
|
||||||
rowWidth += HORIZONTAL_SPACING;
|
rowWidth += HORIZONTAL_SPACING;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user