Skip to content

Commit

Permalink
Fix layout margin which is specific to a system
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Sep 18, 2024
1 parent 132f3bb commit 6121c16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public AnatomicRegionView(AnatomicRegion region, boolean selectSeries) {
}

void jbInit() {
setLayout(new MigLayout("wrap 2", "[right][grow]", "[]10[]10[]20[]")); // NON-NLS
setLayout(new MigLayout("wrap 2, insets 5lp", "[right][grow]", "[]10[]10[]20[]")); // NON-NLS

setBorder(GuiUtils.getEmptyBorder(10, 15, 10, 15));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public ConfigurationDialog(Window parent, Launcher launcher, Launcher.Type type)
cardPanel = new JPanel(new CardLayout());
cardPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString("configuration")));

JPanel uriPanel = new JPanel(new MigLayout("", "[][grow]", "[]")); // NON-NLS
JPanel uriPanel = new JPanel(new MigLayout("insets 10", "[][grow]", "[]")); // NON-NLS
uriPanel.add(new JLabel(Messages.getString("uri") + StringUtil.COLON), "cell 0 0"); // NON-NLS
uriPanel.add(uriField, "cell 1 0, growx"); // NON-NLS

JPanel appPanel = new JPanel(new MigLayout("", "[][grow]", "[][][][][]")); // NON-NLS
JPanel appPanel = new JPanel(new MigLayout("insets 10", "[][grow]", "[][][][][]")); // NON-NLS
appPanel.add(
new JLabel(Messages.getString("binary.path") + StringUtil.COLON), "cell 0 0"); // NON-NLS
appPanel.add(binaryPathField, "cell 1 0, growx"); // NON-NLS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ class SeriesPane extends JPanel {

public SeriesPane(MediaSeriesGroup sequence) {
this.sequence = Objects.requireNonNull(sequence);
this.setLayout(new MigLayout("wrap 1", "[center]")); // NON-NLS
this.setLayout(new MigLayout("wrap 1, insets 0", "[center]")); // NON-NLS
this.setBackground(FlatUIUtils.getUIColor(SeriesSelectionModel.BACKGROUND, Color.LIGHT_GRAY));
int thumbnailSize =
GuiUtils.getUICore()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void buildHeader(JPanel panel) {
}

public JPanel getProvider() {
MigLayout layout = new MigLayout("fillx", "[right]rel[grow,fill]"); // NON-NLS
MigLayout layout = new MigLayout("fillx, insets 5lp", "[right]rel[grow,fill]"); // NON-NLS
JPanel panel = new JPanel(layout);
panel.setBorder(
BorderFactory.createCompoundBorder(
Expand All @@ -160,7 +160,7 @@ public JPanel getProvider() {
}

public JPanel getRegistration() {
MigLayout layout = new MigLayout("fillx", "[right]rel[grow,fill]"); // NON-NLS
MigLayout layout = new MigLayout("fillx, ins 5lp", "[right]rel[grow,fill]"); // NON-NLS
JPanel panel = new JPanel(layout);
panel.setBorder(
BorderFactory.createCompoundBorder(
Expand Down

0 comments on commit 6121c16

Please sign in to comment.