John Crygier
2012-05-07 022ebb4010ecf91ef5049f0386ef398f1d7fb32b
src/com/gitblit/client/EditRepositoryDialog.java
@@ -33,6 +33,8 @@
import java.util.List;
import java.util.Set;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
@@ -283,7 +285,8 @@
      postReceivePanel.add(postReceivePalette, BorderLayout.CENTER);
      postReceivePanel.add(postReceiveInherited, BorderLayout.WEST);
      
      customFieldsPanel = new JPanel(new VerticalFlowLayout());
      customFieldsPanel = new JPanel();
      customFieldsPanel.setLayout(new BoxLayout(customFieldsPanel, BoxLayout.Y_AXIS));
      JScrollPane customFieldsScrollPane = new JScrollPane(customFieldsPanel);
      customFieldsScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
      customFieldsScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
@@ -565,6 +568,11 @@
         
         customFieldsPanel.add(newFieldPanel(fieldLabel, 250, textField));
      }
      if (customFields.size() < 14) {
         customFieldsPanel.add(Box.createVerticalGlue());
         customFieldsPanel.add(Box.createRigidArea(new Dimension(300, 300 - (customFields.size() * 22))));
      }
   }
   /**