I'm using the default SimpleChat pod (from LCCS SDK 1.2.5) and am experiencing two different problems when the chat window has enough chat messages that it has to scroll:
This always happens: When I try to manually scroll to the bottom of the chat history, the scroll bar won't stay all the way down. Then one of the following things happens:
1) If a new message comes in, it's not shown in the chat history window. I have to scroll manually because the scroll bar is not "stuck" to the bottom.
2) If a new message comes in, the chat message window auto-scrolls to the top of the history (the oldest messages), also leaving the most recent message at the bottom (having to scroll to see it).
Any advice?
Views
Replies
Total Likes
Hi,
There was a bug on our side which was fixed recently and would be updated in the next drop of the SDK.
I am giving you the fix. You need to make the following change in your SimpleChat.as and link your project to the source files instead of swc. Once the next drop of SDK comes in, you can continue back to using your swc.
You need to update the onHistoryScroll function in SimpleChat with the one below
protected function onHistoryScroll(p_evt:ScrollEvent):void
{
if ( p_evt.detail == ScrollEventDetail.THUMB_TRACK ) {
_detachedScrolling.reset();
_detachedScrolling.start();
}
}
Don't forget to do import mx.events.ScrollEventDetail; on the top else you will get compile errors.
Hope this fixes your problem
Thanks
Regards
Hironmay Basu
Views
Replies
Total Likes
Thanks that worked. Is there a list of these things that get broken somewhere?
Views
Replies
Total Likes
Hi there,
We're not keeping open bug lists at this time (they are tracked
internally), because we tend to turnaround the SDK within a month or so -
the extra administrative work isn't really worth it. We just fix the bug,
then get it out to you (first, as source, then in the next drop, which
should be a matter of a few weeks from now).
thanks
nigel
Views
Replies
Total Likes