IDEA-57632 Show vertical scroll bars at 'Commit Changes' editor if necessary

IDEA-57634    'Commit Changes' editor: make it possible to manage vertical viewport position via mouse3

Commit message editor is configured to use vertical scroll bars if necessary
This commit is contained in:
Denis Zhdanov
2010-08-16 13:59:36 +04:00
parent e31b78ec6d
commit 720f73356b
@@ -187,7 +187,7 @@ public class CommitMessage extends JPanel implements Disposable {
protected EditorEx createEditor() {
final EditorEx ex = super.createEditor();
ex.setOneLineMode(false);
ex.setVerticalScrollbarVisible(false);
ex.getScrollPane().setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
ex.setHorizontalScrollbarVisible(true);
EditorSettings settings = ex.getSettings();
settings.setUseSoftWraps(true);