autosize icon indicating copy to clipboard operation
autosize copied to clipboard

Textarea doesn't shrink after clearing on iphone 5

Open pndparade opened this issue 8 years ago • 2 comments

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);
})

pndparade avatar Mar 25 '16 14:03 pndparade

Same on iPhone 4s

Demitrius avatar Nov 17 '16 17:11 Demitrius

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.

jackmoore avatar Jul 13 '17 00:07 jackmoore