revert accidentally committed change

This commit is contained in:
Dmitry Batrak
2015-11-20 15:11:08 +03:00
parent 45d564eb0b
commit 33117e2ffa
@@ -295,12 +295,10 @@ public class TextEditorProvider implements FileEditorProvider, DumbAware {
UiNotifyConnector.doWhenFirstShown(editor.getContentComponent(), new Runnable() {
public void run() {
if (!editor.isDisposed()) {
editor.getScrollingModel().disableAnimation();
if (verticalScrollProportion != -1) {
EditorUtil.setVerticalScrollProportion(editor, verticalScrollProportion);
}
editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
editor.getScrollingModel().enableAnimation();
}
}
});