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