Brian Gough 10 лет назад
Родитель
Сommit
cb4f6391a2

+ 2 - 0
services/web/public/coffee/ide/editor/EditorManager.coffee

@@ -47,6 +47,8 @@ define [
 			done = () =>
 				if options.gotoLine?
 					# allow Ace to display document before moving, delay until next tick
+					# added delay to make this happen later that gotoStoredPosition in
+					# CursorPositionManager
 					setTimeout () =>
 						@$scope.$broadcast "editor:gotoLine", options.gotoLine, options.gotoColumn
 					,0

+ 1 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/cursor-position/CursorPositionManager.coffee

@@ -55,5 +55,5 @@ define [], () ->
 
 		gotoLine: (line, column) ->
 			@editor.gotoLine(line, column)
-			@editor.scrollToLine(line,true,true)
+			@editor.scrollToLine(line,true,true) # centre and animate
 			@editor.focus()