pec1985 / TiSMSView

Expandable Text Area Module - iOS - Titanium
Other
60 stars 18 forks source link

Race problem with sendMessage - receiveMessage #5

Open sindresorhus opened 13 years ago

sindresorhus commented 13 years ago

If I do a .receiveMessage() right after an .sendMessage(), the scrolling is set on the .sendMessage() and not on the last item .receiveMessage(), like it should, so the last .receiveMessage() is not shown, and I have to scroll to see it.

pec1985 commented 13 years ago

I will test it over the weekend and do the best I can to fix it. For future bugs like this one, please provide a sample code so that I can just copy, paste, and run. Thanks.

sindresorhus commented 13 years ago

Testcase

You'll notice that the last "received" message is not scrolled into view.

pec1985 commented 13 years ago

Not sure how to fix it. For now, set the animation to false until all the messages are shown, then set the animation back to true.

I will look into it.