[wp-trac] [WordPress Trac] #26053: Auto-expand quick draft textarea

WordPress Trac noreply at wordpress.org
Tue Dec 3 06:34:01 UTC 2013


#26053: Auto-expand quick draft textarea
-------------------------------------+------------------
 Reporter:  lessbloat                |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  high                     |   Milestone:  3.8
Component:  Administration           |     Version:
 Severity:  minor                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by helen):

 [attachment:26053.3.diff] simplifies the JS a bit, avoids triggering any
 height changes where possible, and adds a very quick animation to the
 grow/shrink effect. Also lints clean.

 I played with scrollHeight a bit, the way DFW handles it, but it was
 calculating the height to be about half a line too short. Might have been
 me not accounting for something - if we can do it that way, and are fine
 with IE8+ support only, it might be better than doing the div clone thing.

 One other thing - it doesn't recalculate a max height at any point after
 initial load. It did not bother me to have the textarea be short after
 resizing taller, and it felt really wrong to have it shrink when typing
 after resizing shorter.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26053#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list