Changeset 37684
- Timestamp:
- 06/11/2016 05:14:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor-expand.js
r37659 r37684 87 87 var length = textEditor.value.length; 88 88 var height = parseInt( textEditor.style.height, 10 ); 89 var top = window.scrollTop; 89 90 90 91 if ( length < oldTextLength ) { … … 92 93 textEditor.style.height = 'auto'; 93 94 94 if ( textEditor.scrollHeight > =autoresizeMinHeight ) {95 if ( textEditor.scrollHeight > autoresizeMinHeight ) { 95 96 textEditor.style.height = textEditor.scrollHeight + 'px'; 96 97 } else { 97 98 textEditor.style.height = autoresizeMinHeight + 'px'; 98 99 } 100 101 // Prevent scroll-jumping in Firefox and IE. 102 window.scrollTop = top; 99 103 100 104 if ( textEditor.scrollHeight < height ) {
Note: See TracChangeset
for help on using the changeset viewer.