Skip to content

Commit

Permalink
Fix problem with MigLayout expression styling
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Oct 29, 2024
1 parent 8ce4608 commit 4d1def9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class AxisResetButton extends RoundedPanel {
public AxisResetButton(Axis axis, FontManager fontManager) {
super(RADIUS);

setLayout(new MigLayout("inset 4 10 4 12, gap 0"));
setLayout(new MigLayout("inset 4 10 4 12, gap 2"));
axisLabel = new JLabel(String.valueOf(axis));
add(axisLabel, "al center, dock center, id axis");
add(axisLabel, "al center, id axis");

zeroLabel = new JLabel("0");
add(zeroLabel, "id zero, pos (axis.x + axis.w - 4) (axis.y + axis.h - zero.h)");
add(zeroLabel, "id zero");

fontManager.addAxisResetLabel(axisLabel);
fontManager.addAxisResetZeroLabel(zeroLabel);
Expand Down

0 comments on commit 4d1def9

Please sign in to comment.