IDEA-149324 use default scrollbar policy

This commit is contained in:
Sergey Malenkov
2015-12-15 11:27:36 +03:00
parent 5c47052de4
commit 1b0a1014d7
@@ -1020,8 +1020,6 @@ public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
JPanel mainPanel;
if (myAdditionalOptionsPanel != null) {
JScrollPane optionsPane = ScrollPaneFactory.createScrollPane(myAdditionalOptionsPanel, true);
optionsPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
optionsPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
optionsPane.getVerticalScrollBar().setUI(ButtonlessScrollBarUI.createTransparent());
JPanel infoPanel = JBUI.Panels.simplePanel(optionsPane).withBorder(JBUI.Borders.emptyLeft(10));