[wp-trac] [WordPress Trac] #23042: Post edit page may become almost unusable and textarea resize not saved
WordPress Trac
noreply at wordpress.org
Sat Jan 5 22:10:16 UTC 2013
#23042: Post edit page may become almost unusable and textarea resize not saved
--------------------------+-----------------------
Reporter: kinderr@… | Owner: azaozz
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.5.1
Component: Editor | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by azaozz):
After chatting [https://irclogs.wordpress.org/chanlog.php?channel
=wordpress-dev&day=2013-01-05&sort=asc#m528741 in IRC] last night,
reverted the textarea resizing part keeping only the reuse of the `height`
value after resizing. The part that changes it to use `.on()` and `.off()`
can be added for 3.6 only.
The second part is more robust/includes more safeguards to avoid any
possibility of getting a wrong height value. This is primarily by looking
at the `style="height: ..."` for the elements eliminating any "calculated"
values. `jQuery(element).css('height')` returns the browser calculated
height not the value from the element's "style" attribute. That may
explain the rare edge cases where `height` is around 17,000,000px.
It will also reset a previously saved huge value (more than 5000px) to the
default height of 360px.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23042#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list