保存时滚动条重置
This commit is contained in:
parent
420d1bd064
commit
9204ce291a
|
@ -570,6 +570,7 @@ var wide = {
|
|||
var mode = curEditor.getOption("mode");
|
||||
|
||||
var cursor = curEditor.getCursor();
|
||||
var scrollInfo = curEditor.getScrollInfo();
|
||||
|
||||
var request = newWideRequest();
|
||||
request.file = path;
|
||||
|
@ -588,6 +589,7 @@ var wide = {
|
|||
if (data.succ) {
|
||||
curEditor.setValue(data.code);
|
||||
curEditor.setCursor(cursor);
|
||||
curEditor.scrollTo(null, scrollInfo.top);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue