Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17136, comment 17


Ignore:
Timestamp:
04/20/2011 08:44:39 AM (13 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17136, comment 17

    initial v1  
    33> ...when I type a lot of text, the box expands, but doesn't re-collapse when I remove text.
    44
    5 Unfortunately WebKit (Chrome, Safari) doesn't update any of the `clientHeight, offsetHeight, scrollHeight` etc. in `document, documentElement` or `body` when in contentEditable mode. Seems we will have to listen for the backspace and delete keys and force an autoresize at least in these cases (despite that I really hate adding more functions onkeyup).
     5Unfortunately WebKit (Chrome, Safari) doesn't update any of the `clientHeight, offsetHeight, scrollHeight` etc. in `document, documentElement` or `body` when in contentEditable mode. Seems we will have to listen for the backspace and delete keys and force an autoresize at least in these cases (despite that I really hate adding more functions onkeyup). IE, FF and Opera seem ok.
    66
    77@andrewryno for some reason WebKit was going wild when trying to get the iframe size before the CSS was applied completely. Tweaked the autoresize on init a bit, seems fixed now.