Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea doesn't shrink after clearing on iphone 5 #297

Open
pndparade opened this issue Mar 25, 2016 · 2 comments
Open

Textarea doesn't shrink after clearing on iphone 5 #297

pndparade opened this issue Mar 25, 2016 · 2 comments

Comments

@pndparade
Copy link

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);
})
@Demitrius
Copy link

Same on iPhone 4s

@jackmoore
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants