Skip to content

Commit

Permalink
BUG: The spent and budget columns aren't wide enough when the font si…
Browse files Browse the repository at this point in the history
…ze is increased to +8.
  • Loading branch information
jerrymjones committed Oct 12, 2023
1 parent 2b899d6 commit 13eedc3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/com/moneydance/modules/features/budgetbars/BudgetBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public BudgetBar(final MoneydanceGUI mdGUI, final DataModel dataModel, final Str

// Display the budget amount left to spend at the left end of the progress bar
this.spentLabel = new JLabel("", JLabel.RIGHT);
this.spentLabel.setPreferredSize(new Dimension(100, this.spentLabel.getHeight()));
this.spentLabel.setPreferredSize(new Dimension(110, this.spentLabel.getHeight()));
this.add(this.spentLabel, BorderLayout.LINE_START);

// Create and configure the progress bar
Expand All @@ -115,8 +115,8 @@ public BudgetBar(final MoneydanceGUI mdGUI, final DataModel dataModel, final Str
this.add(this.progressBar, BorderLayout.CENTER);

// Display the budget value at the right end of the budget bar
this.budgetLabel = new JLabel("", JLabel.RIGHT);
this.budgetLabel.setPreferredSize(new Dimension(100, this.budgetLabel.getHeight()));
this.budgetLabel = new JLabel("", JLabel.LEFT);
this.budgetLabel.setPreferredSize(new Dimension(110, this.budgetLabel.getHeight()));
this.add(this.budgetLabel, BorderLayout.LINE_END);

// Add a gap at the bottom of the budget bar
Expand Down
6 changes: 3 additions & 3 deletions src/com/moneydance/modules/features/budgetbars/FooterBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public FooterBar(final MoneydanceGUI mdGUI)

// Left legend
final JLabel leftLabel = new JLabel("Spent", JLabel.RIGHT);
leftLabel.setPreferredSize(new Dimension(100, leftLabel.getHeight()));
leftLabel.setPreferredSize(new Dimension(110, leftLabel.getHeight()));
leftLabel.setForeground(colors.isDarkTheme() ? Constants.MEDIUM_BLUE : colors.reportBlueFG);
this.add(leftLabel, BorderLayout.LINE_START);

Expand All @@ -77,8 +77,8 @@ public FooterBar(final MoneydanceGUI mdGUI)
this.add(centerLabel, BorderLayout.CENTER);

// Right legend
final JLabel rightLabel = new JLabel("Budget", JLabel.RIGHT);
rightLabel.setPreferredSize(new Dimension(100, rightLabel.getHeight()));
final JLabel rightLabel = new JLabel("Budget", JLabel.LEFT);
rightLabel.setPreferredSize(new Dimension(110, rightLabel.getHeight()));
rightLabel.setForeground(colors.isDarkTheme() ? Constants.MEDIUM_BLUE : colors.reportBlueFG);
this.add(rightLabel, BorderLayout.LINE_END);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extension_type" = "java"
"vendor" = "Jerry Jones"
"vendor_url" = "https://github.com/jerrymjones/MonthlyBudgetBars/wiki"
"module_build" = "2203"
"module_build" = "2204"
"minbuild" = "1706"
"module_name" = "Monthly Budget Bars"
"module_desc" = "<html><body><title>Monthly Budget Bars</title><p>Provides a home page component to display monthly budget status bars.</p></body></html>"
Expand Down

0 comments on commit 13eedc3

Please sign in to comment.