Skip to content

Commit

Permalink
Initial work towards dynamically adjusting home screen icon rows and …
Browse files Browse the repository at this point in the history
…columns based on screen dimensions.
  • Loading branch information
lanceewing committed Mar 30, 2024
1 parent 5545726 commit b010574
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/com/agifans/agile/HomeScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ private void addAppButtonsToStage(Stage stage, AppConfig appConfig, int columns,
columns = (int)((viewportWidth - sidePadding) / ICON_IMAGE_WIDTH);
rows = (int)((viewportHeight - sidePadding) / (ICON_IMAGE_HEIGHT + ICON_LABEL_HEIGHT));

System.out.print("width: " + viewportWidth +
", height: " + viewportHeight +
", rows: " + rows +
", columns: " + columns +
"\n");
//System.out.print("width: " + viewportWidth +
// ", height: " + viewportHeight +
// ", rows: " + rows +
// ", columns: " + columns +
// "\n");

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

0 comments on commit b010574

Please sign in to comment.