Don't auto-resize Quick Draft textarea in IE < 9. Avoids IE8 crash.
props morganestes. fixes #27761. git-svn-id: https://develop.svn.wordpress.org/trunk@28103 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a343c6020a
commit
e22e40001d
@ -124,6 +124,10 @@ jQuery(document).ready( function($) {
|
||||
$( '.meta-box-sortables' ).sortable( 'option', 'containment', 'document' );
|
||||
|
||||
function autoResizeTextarea() {
|
||||
if ( document.documentMode && document.documentMode < 9 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add a hidden div. We'll copy over the text from the textarea to measure its height.
|
||||
$('body').append( '<div class="quick-draft-textarea-clone" style="display: none;"></div>' );
|
||||
|
||||
@ -173,8 +177,8 @@ jQuery(document).ready( function($) {
|
||||
editorHeight = cloneHeight;
|
||||
}
|
||||
|
||||
// No scrollbars as we change height
|
||||
editor.css('overflow-y', 'hidden');
|
||||
// No scrollbars as we change height, not for IE < 9
|
||||
editor.css('overflow', 'hidden');
|
||||
|
||||
$this.css('height', editorHeight + 'px');
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user