Changeset 41384
- Timestamp:
- 09/17/2017 03:34:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/code-editor.js
r41376 r41384 182 182 }); 183 183 codemirror.on( 'focus', function() { 184 if ( codemirror.display. wrapper.scrollIntoViewIfNeeded ) {185 codemirror.display. wrapper.scrollIntoViewIfNeeded();184 if ( codemirror.display.cursorDiv.scrollIntoViewIfNeeded ) { 185 codemirror.display.cursorDiv.scrollIntoViewIfNeeded(); 186 186 } else { 187 codemirror.display. wrapper.scrollIntoView();187 codemirror.display.cursorDiv.scrollIntoView(); 188 188 } 189 189 });
Note: See TracChangeset
for help on using the changeset viewer.