What is the easiest way to make the parent #container div automatically adjust height when the inner #child contenteditable div exceeds the height of the parent div.
Here’s the example. http://jsfiddle.net/ULUJX/
Try to type inside the #child div until height exceeds the parent div.
I’d track
keyupevents and watch the height of#child, for example:Here’s an updated version of your jsfiddle: http://jsfiddle.net/ambiguous/ULUJX/10/
If you want it to shrink as well then simply change the
ifand take care with the initial sizes of things.