Robert Neild
Robert Neild
The textbox is scrolling before it's height is increased I have tried to improve this various ways, but nothing worked
The problem is here `if (style.height !== ta.style.height) {` On IE getComputedStyle().height doesn't adapt to 'border-box' and always returns the inner content area height. However 'ta.style.height' does change and includes...
The problem only happens on IE9 (and I assume IE10). It doesn't happen in IE11 or in emulation modes The problem can also be reproduced on the demo page http://www.jacklmoore.com/autosize/....
Testing old browsers can be done using Microsoft virtual machines https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
I am experimenting with the following fix `var endHeight = Math.max(ta.scrollHeight,ta.clientHeight) + heightOffset;`