autosize
autosize copied to clipboard
Textarea doesn't shrink after clearing on iphone 5
Sorry, if I didn't notice the solution. Your plugin works great on any device exept iphone (i tried on iphone 5). How can I fix it? I use this coge
$('.textarea-resize').each(function(){
autosize(this);
})
Same on iPhone 4s
Sorry for letting this languish, I don't have a way of testing older versions of Safari. It sounds like a bug with how that version of Safari batched layout updates, so that when Autosize resets the textarea height in order to see what the scroll height would be, Safari had not actually triggered updated the layout to reflect that change, leading to an incorrect measurement. It's not obvious to me how that would be worked around.