Revert "IDEA-149324 use default scrollbar policy"

It fixes minor issue, while introducing more distractfull one (horizontal scrollbar should not be visible in most cases)

This reverts commit 1b0a1014d7.
This commit is contained in:
Aleksey Pivovarov
2015-12-23 18:29:53 +03:00
parent 8ba0b26e5e
commit 3e4eabfe4d
@@ -1012,6 +1012,8 @@ 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));