I am having trouble creating an auto expanding textarea inside a position absolute div. This question answers how to make the autoexpanding textarea, however, this technique does not work when inside a position: absolute
parent. The textarea will expand and shrink correctly up until the point when it reaches its max height at 85px. Then once you try and delete lines the textarea will not shrink correctly.
Here is a demo of the problem: http://codepen.io/anon/pen/mPeyzE
I'm guessing this has to do with some special condition with scrollHeight
and the parent's height but I cannot find anything documented on this exact situation.