Incredible shrinking textarea I love you.
> Odd thing came up yesterday was getting reports that users of a web page
were typing into a textarea and it was shrinking with every word they
typed. Seemed an odd report and I was thinking it must be inadvertant
hover over a textarea and resizing by dragging the corner. Turns out it
wasn't though eventually I managed to reproduce it in Internet Explorer
8. Turns out it only happened when the browser had gone into or been
switched into 'compatibility mode'.
The textarea was marked up like so
The way I resolved it was to add in the html tag to disable compatibility mode
Pretty strange thing to happen I guess no one ever intended a textarea to do that, its pretty disconcerting having it shrink as you type.
The way I resolved it was to add in the html tag to disable compatibility mode
or you can add in a similar http header
X-UA-Compatible: IE=edge
Pretty strange thing to happen I guess no one ever intended a textarea to do that, its pretty disconcerting having it shrink as you type.
/ Adam