diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.form b/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.form index 59ab13df1bf7..d3aa04685829 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.form +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.form @@ -1,6 +1,6 @@
- + @@ -16,7 +16,7 @@ - + @@ -51,12 +51,10 @@ - + - - - + @@ -94,7 +92,7 @@ - + @@ -136,9 +134,7 @@ - - - + diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java index b1403502971b..1426265d2092 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java @@ -24,10 +24,12 @@ import com.intellij.openapi.vcs.*; import com.intellij.openapi.vcs.ex.ProjectLevelVcsManagerEx; import com.intellij.openapi.vcs.readOnlyHandler.ReadonlyStatusHandlerImpl; import com.intellij.openapi.vfs.ReadonlyStatusHandler; +import com.intellij.ui.border.IdeaTitledBorder; import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.Nullable; import javax.swing.*; +import javax.swing.border.Border; import java.awt.*; import java.util.List; import java.util.*; @@ -59,6 +61,7 @@ public class VcsGeneralConfigurationPanel { private JComboBox myOnPatchCreation; private JCheckBox myReloadContext; private JLabel myOnPatchCreationLabel; + private JPanel myEmptyChangeListPanel; private ButtonGroup myEmptyChangelistRemovingGroup; public VcsGeneralConfigurationPanel(final Project project) { @@ -140,6 +143,25 @@ public class VcsGeneralConfigurationPanel { .getConfirmation(VcsConfiguration.StandardConfirmation.REMOVE); } + private void createUIComponents() { + myPanel = new JPanel() { + @Override + public void doLayout() { + updateMinSize(myAddConfirmationPanel, myRemoveConfirmationPanel, myEmptyChangeListPanel, myPromptsPanel); + super.doLayout(); + } + + private void updateMinSize(JPanel... panels) { + for (JPanel panel : panels) { + Border border = panel.getBorder(); + if (border instanceof IdeaTitledBorder) { + ((IdeaTitledBorder)border).acceptMinimumSize(panel); + } + } + } + }; + } + private static VcsShowConfirmationOption.Value getSelected(JRadioButton[] group) { if (group[0].isSelected()) return VcsShowConfirmationOption.Value.SHOW_CONFIRMATION;