Index: Source/devtools/front_end/CodeMirrorUtils.js |
diff --git a/Source/devtools/front_end/CodeMirrorUtils.js b/Source/devtools/front_end/CodeMirrorUtils.js |
index d03686aa268ccca36040853fd46d3d756123c1c7..7db1f686515d59a8af64b382d2bb7b617f40b862 100644 |
--- a/Source/devtools/front_end/CodeMirrorUtils.js |
+++ b/Source/devtools/front_end/CodeMirrorUtils.js |
@@ -72,7 +72,7 @@ WebInspector.CodeMirrorUtils.prototype = { |
}); |
codeMirror.getWrapperElement().classList.add("source-code"); |
codeMirror.on("cursorActivity", function(cm) { |
- cm.display.cursor.scrollIntoViewIfNeeded(false); |
+ cm.display.cursorDiv.scrollIntoViewIfNeeded(false); |
}); |
editingContext.codeMirror = codeMirror; |
}, |