Make WordPress Core

Changeset 27022


Ignore:
Timestamp:
01/23/2014 06:08:47 PM (12 years ago)
Author:
nacin
Message:

Properly detect line height of Quick Draft textarea.

Merges [27021] to the 3.8 branch. Half was committed in [27013].

props batmoo.
fixes #26915.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-admin/js/dashboard.js

    r27013 r27022  
    160160            var $this = $(this),
    161161                //   is to ensure that the height of a final trailing newline is included.
    162                 textareaContent = $this.val().replace(/\n/g, '<br>') + '&nbsp;',
     162                textareaContent = $this.val() + '&nbsp;',
    163163                // 2px is for border-top & border-bottom
    164164                cloneHeight = clone.css('width', $this.css('width')).text(textareaContent).outerHeight() + 2;
Note: See TracChangeset for help on using the changeset viewer.