Skip to content

Commit

Permalink
Adjusted home screen rows calculation to account for recent reduction…
Browse files Browse the repository at this point in the history
… in gap between icon and label.
  • Loading branch information
lanceewing committed Apr 4, 2024
1 parent 16990c4 commit a499f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/agifans/agile/HomeScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void addAppButtonsToStage(Stage stage, PaginationWidget paginationWidget

int availableHeight = (int)(viewportHeight - PAGINATION_HEIGHT);
int columns = (int)((viewportWidth - sidePadding) / ICON_IMAGE_WIDTH);
int rows = (int)(availableHeight / (ICON_IMAGE_HEIGHT + ICON_LABEL_HEIGHT + 15));
int rows = (int)(availableHeight / (ICON_IMAGE_HEIGHT + ICON_LABEL_HEIGHT + 10));

int totalHorizPadding = 0;
int horizPaddingUnit = 0;
Expand Down

0 comments on commit a499f4e

Please sign in to comment.