mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user