Make WordPress Core

Changeset 28103


Ignore:
Timestamp:
04/13/2014 06:24:25 PM (10 years ago)
Author:
nacin
Message:

Don't auto-resize Quick Draft textarea in IE < 9. Avoids IE8 crash.

props morganestes.
fixes #27761.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/dashboard.js

    r27583 r28103  
    125125
    126126    function autoResizeTextarea() {
     127        if ( document.documentMode && document.documentMode < 9 ) {
     128            return;
     129        }
     130
    127131        // Add a hidden div. We'll copy over the text from the textarea to measure its height.
    128132        $('body').append( '<div class="quick-draft-textarea-clone" style="display: none;"></div>' );
     
    174178            }
    175179
    176             // No scrollbars as we change height
    177             editor.css('overflow-y', 'hidden');
     180            // No scrollbars as we change height, not for IE < 9
     181            editor.css('overflow', 'hidden');
    178182
    179183            $this.css('height', editorHeight + 'px');
Note: See TracChangeset for help on using the changeset viewer.