SimpleChat auto-scrolling problems

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?

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

Similar Messages

  • Auto-scrolling of list view in Finder windows sometimes doesn't work

    I've noticed a minor bug in 10.4 that doesn't seem to show up in 10.3.9, and I thought I'd comment on it here because it's mildly annoying, and I'm not sure that anyone at Apple is aware of the issue.
    My Pictures folder is pretty large -- I have over 6,000 items in it, some of which are themselves folders. I've got this folder set to list view. My typical usage pattern is to open a Finder window for my Pictures folder, start typing the first few characters of a file name, and then search from there. In 10.4.3 and later (up to and including 10.4.6 as of this writing), if the file in question is outside the viewport of the Finder window, the thumb on the scrollbar will jump to the correct location, but the actual viewport won't scroll to match; therefore, the file that gets highlighted isn't visible.
    The work-around is to manually scroll the contents of the window so that I'm "closer" to the file I'm looking for; alternately, I can type characters to get the ball rolling, and then hit the up or down arrow key a couple times (once won't do the trick) which will force the viewport to jump to the correct scroll location. Using this second method, I then have to move the selection back to the file, which is annoying since it's forcing me to use extra keystrokes.
    Interestingly enough, if I am careful and click on the scrollbar thumb without moving it too much (after typing the first few characters of the filename I'm looking for), the viewport will usually "snap to" the appropriate position. This suggests that the logic to auto-scroll the contents of a Finder window got subtly broken between Panther and Tiger. It just seems weird to me that the scrollbar thumb would jump without the viewport following suit automatically.
    This wasn't a problem in 10.3.9. I realize that we're being encouraged to use Spotlight and other search features, but since my pictures directory is already an alphabetic list view of files, why should I be forced to do a Spotlight search when I know what it is I'm after?
    Dual 2.0 GHz G5   Mac OS X (10.4.6)  

    I've been having the same problem (though I haven't looked at the console yet to verify the same exact error).
    There doesn't seem to be a situation that I can identify to cause the problem (i.e. waking from sleep mode), so it's difficult to reproduce consistently. The error seems to happen randomly. Last night I was getting the error every time I sent a single message. So I'd create and send a message, and then the next message I'd try to create or reply to, I couldn't. I'd have to quit Mail and start it again to gain functionality.
    When I do have the problem where the compose window isn't created when replying, I also can not start a new message, note, or forward a message. Basically, no new windows can pop up besides the windows that are already there in Mail. When I quit mail, every window I tried to create by replying, making a new message, or forwarding, appears in the draft folder, just before the program closes. Then, the next time I open Mail all the windows appear that I tried to create, with no text in them. Very strange. Looks like this poster has a similar problem.
    http://discussions.apple.com/thread.jspa?threadID=1197152&tstart=1020
    I'm curious if this is a bug, or something our machines just can't handle? I see that we all have very similarly spec'd PowerBooks.

  • How to auto scroll a table to last row when using Active Data Service?  11g

    Hi all,
    Has anyone got any experience with the ADF Active Data Service?
    I am using an af:table in combination with the ADF Active Data Service and I want the table to scroll to the latest row when new data arrives.
    It is basically a simple setup:
    The value attribute of my table points to a bean that extends CollectionModel and implements ActiveDataModel. This works perfectly. A soon as I receive new data in my bean, the table is automatically updated (e.g. a new row is inserted). I use JDev version: 11.1.1.3
    The problem is that I can not get the scroll bar to move down to the last row automatically when new data arrives. The auto scroll only works for the client that actually performs a submit. In other words the person that submits the new data, will see his scrollbar move down, this is because I added the following code:
    RowKeySet rowkeysset = chatTableBinding.getSelectedRowKeys();
    rowkeysset.clear();
    rowkeysset.add(getRowKey());
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.chatTableBinding);
    This does not work for the clients that receive the new data via the Active data model. Apparently the active data service partially refreshes the table, but not in such a way that it sets the selected row to the last row?
    My table definition:
    <af:table value="#{pageFlowScope.chatBean.instantMessagingChatwindowBean}" var="row"
    id="t1" columnStretching="last" rows="10"
    styleClass="AFStretchWidth" autoHeightRows="10" contentDelivery="immediate"
    horizontalGridVisible="false"
    verticalGridVisible="false"
    disableColumnReordering="true" displayRow="last"
    rowSelection="single"
    binding="#{pageFlowScope.chatBean.instantMessagingChatwindowBean.chatTableBinding}"
    inlineStyle="height:80px;">
    p.s.
    The table is used to show incoming chat message.
    I am building a chat client (taskflow) in a Webcenter application. The concept is similar of that presented by Lucas Jellemain in his blogpost on building a Google Talk Client http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html

    Dan,
    This is a thanks for posting your findings. You saved me quite some time.
    <af:selectBooleanCheckbox id="showOnlyActiveSubscriptions" selected="true"
    label="Show only active services:"
    value="#{servicePortfolioBean.showOnlyActiveSubscriptions}"
    autoSubmit="true" />
    <af:table binding="#{servicePortfolioBean.serviceTable}" ...
    partialTriggers="showOnlyActiveSubscriptions">
    Of course, when I add a "ValueChangeListener" to the selectBooleanCheckbox, the PPR stops working. :( I wonder why?

  • Mail Drag and Drop to mailboxes not auto-scrolling

    When dragging a mail message to the sidebar and the mailbox I want to drag it to is not in sight, on earlier OSes, I used to be able to drag and hold to the top or bottom of the sidebar and it would auto-scroll so I could drop the message where I wanted. On Yosemite, no auto-scrolling happens. Is this just me or are other experiencing the same problem and/or does someone have a solution?

    beezaman,
    I also experience this issue. If I turn off or Hide if you will the Favorites Bar and the Toolbar then I'm able to drag a file to scroll up or down in the sidebar.  As I know hiding the toolbars isn't something many people would want to do, I would encourage sending Apple feedback about this issue. You can do so at the following link: https://www.apple.com/feedback/macosx.html
    For me a solution for now would be to use the scroll whilst dragging feature of the trackpad. Click and drag a message over the sidebar and then whilst still holding down the left click I can scroll up or down using the trackpads two finger scroll.
    Hope that helps,
    Weston

  • Why does the history/library window auto-scroll away from the previous point in the library?

    When in Firefox 23.0's history/library window when I am browsing it will auto-scroll to the top of "Today" page making it frustrating and difficult to browse. I do not seem to recall this being the case before. I disabled "auto-scroll" in options and this has not remedied the problem.

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Auto-scrolling doesn't work when JFrame is not visible

    Hi, I have auto-scrolling implemented for my JTextPane that sits in JScrollPane - which lives in JInternalFrame. It works as excepted - as long as my application's JFrame is visible. When the JFrame becomes invisible, auto-scrolling simply doesn't work anymore.
    I've overcame this by scrolling down in "windowShown", but it's ugly because the user can visually see the scroll down when using this workaround (it jumps).
    I guess this is Swing's optimization, but I would really like to overcome it in someway. But it seems I'm not enough a swing hacker to do it.
    One thing to note is thtat, the auto-scrolling works fine when the JInternalFrame is NOT visible, but frame is.
    I've tried to override the isShowing-method of JInternalFrame, with no luck.
    Here's my scrolling method:
    public static void scrollDown(JScrollPane scroll) {
              JViewport port = scroll.getViewport();
              Rectangle rect = new Rectangle(0, port.getViewSize().height, 1, 1);
              port.scrollRectToVisible(rect);
              JScrollBar bar = scroll.getVerticalScrollBar();
              bar.setValue(bar.getMaximum() - bar.getModel().getExtent());
         }Anyone have ideas?

    At some point I had really hard time getting the auto-scrolling to work, as I got these weird little bumps after scrolling down.
    Adding scrollBar.setValue() seemed to 'just fix it'. It actually seems to be superfluous now.
    The scrolling is already wrapped in SwingUtilities.invokeLater() - in conjuction with printing text into the JTextPane and it works OK.
    I had some wrong info in the first post, the viewport actually does get scrolled down even when the JFrame is not visible. And by visible I mean JFrame.setVisible(false) - my application has a minimize-to-tray feature, which hides the JFrame.
    So I think the problem is 'just' a repainting problem. When the frame is shown, the previous scroll location is first displayed, and then a repaint is triggered that causes the 'jump down'.
    I'm not still sure how to fix it though.

  • Acrobat 8 pro printer issue started today, auto scrolls to Microsoft XPS Document writer.

    I have used Acrobat 8 Pro for many years with no problems. Yesterday, when I went to print a document, it auto scrolled down to Microsoft XPS document writer. I could not select my installed Brothers Printer.
    I have also encountered auto scroll issues when opening my C drive.
    I have installed Adobe Acrobat 8 updates, have run virus and malware software programs and they show no infections.
    Nothing I have tried corrects this issue.
    Has anyone else run into this ?
    Any suggestions as to how this issue can be corrected?
    Thanks,

    Hi Auto5starz,
    For the printer issue ,please take the following steps to have a check :
    1. Run the tool in the link to have a check
    Troubleshoot printer problems
    http://windows.microsoft.com/en-HK/windows/printer-problems-in-windows-help#fix-printer-problems=windows-7&v1h=win8tab2&v2h=win7tab3&v3h=winvistatab1&v4h=winxptab1
    2.Clear the spooler cache to have a check .
       a. Search “Service.msc” and navigate to “Printer Spooler” service and stop it.
        b. Look for this folder "%WINDIR%\system32\spool\printers" and delete all files in it.
        c. Restart “Printer Spooler” service.
    3.Update the printer driver or reinstall it ,you may need to download the manufacturer driver for it.
    For the second issue ,apart from Rob`s suggestion ,please reset the Internet Explorer to have a check .( Tools>Internet Options>Advanced tab>Reset)
    Best regards

  • How to auto scroll from top to bottom on JTable ?

    HI All.
    At the current, I use JTable is contained JScrollPane. Now, I want Jtable auto scroll from first item to bottom and when JTable scroll to bottom then Jtable will scroll bottom to top, It is loop. Who know how do this function, please help me.

    Thanks for reply
    Actually. I was code -> scroll from top to bottom on JTable. Code below But when JTable auto scroll then screen is not smooth.
    Please help How to workground for this problem
    private void scrollTopToBottom() {
                   try {
                        JViewport viewport = flexGrid.getViewport();
                        int heightViewport = viewport.getViewSize().height;
                        while(moveY < heightViewport) {
                             synchronized (this) {
                                  while (suspended)
                                       this.wait();
                                  if (stopped)
                                       break;
                             moveY += 10;
                             if(moveY > heightViewport) {
                                  moveY = heightViewport;
                             viewport.setViewPosition(new Point(0, moveY));
                             try {
                                  Thread.sleep(500);
                             } catch (InterruptedException e1) {
                                  e1.printStackTrace();
                             viewport.updateUI();
                   } catch (InterruptedException e) {
              }

  • JScrollPane Auto Scrolling for Teleprompter

    I am working on a piece of software to scroll text for a teleprompter. I have a class that scrolls the text that is in a JEditorPane nested in a JScrollPane. Here is the class that scrolls the text:
    package teleprompter;
    import javax.swing.JScrollPane;
    public class Scroll extends Thread
        JScrollPane scrlMain;
        public Scroll(JScrollPane scrlMain)
            this.scrlMain = scrlMain;
        public void run()
            int iPos = scrlMain.getVerticalScrollBar().getValue();
            for (;;)
                iPos += 5;
                scrlMain.getVerticalScrollBar().setValue(iPos);
    }My problem is that it is not a consistent, smooth scroll so that someone can read it. It is real jumpy, sometimes it will jump an entire page. For now, the speed of the scroll can be changed by making the 5 in "iPos += 5" a higher number.
    Is there a better way to do an auto scroll that is not so inconsistent and jumpy that anyone can think of?
    Edited by: 879705 on Aug 18, 2011 1:40 PM

    879705 wrote:
    I am working on a piece of software to scroll text for a teleprompter. I have a class that scrolls the text that is in a JEditorPane nested in a JScrollPane.One possibility occurred to me, although I'm no GUI expert and it maybe totally the wrong approach.
    One of the characteristics of a teleprompter (at least in most Western languages) is that new text is always likely to appear at the bottom so, rather than worrying about scrolling, why not either:
    (a) Set the scroll value to 100% and add new lines to the end as and when required, or
    (b) Maintain the text array yourself and simply display it in a fixed area.
    It seems to me that the same technique could also be combined with text animation to display a line at a time.
    However, as I say, I'm no GUI expert, so feel free to laugh...
    Winston

  • Text - Auto Scroll Function

    Does my iPad have an  Auto Scroll   for Safari?
    Is there a "hidden" feature that I can use for reading a text with Safari?
    An automatic scroll (activated by an command) would be a comfortable function.
    I don´t want to use an App.
    Thanks

    Tap and slide up to scroll. Tap and flick up to move faster.
    There is no way I know off to have the screen automatically scroll.
    The iPad has many security features to prevent malware attacks. One of these is called Sandboxing. This keeps each app in its place and prevents apps from altering the system resources or other apps. So no other app will provide the auto scroll functionality to Safari.
    You can make suggestions to Apple here:
    http://www.apple.com/feedback/

  • How im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    how im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    What "auto shutdown problem" are you talking about?

  • How to get Auto scroll bar in a JSP?

    Hi Gurus,
    I have created a custom jsp page in a B2B application. How to get the auto scroll bar when page is exceeded than it can display?
    Is there any specific tag or div which is to be included to get this scroll bar?
    Thanks a lot in advance!!
    Regards,
    Lakshman.

    Hi Lakshman,
    You can include it in stylsheet and then use that class in your <body> or "div"  tag.
    the CSS command is
    overflow:auto;
    you can use like
    <body style="overflow: auto;"> or -- div style="overflow: auto;" 
    You can declare class in ".css" file
    #c1
    .c1
    <body id="c1>> or <div id="c1">
    <body class="c1>> or <div class="c1">
    You can use either "class" or "id" by adding it to "CSS" file and the use it to any JSP file or by direct aditing "Style" attirbute in tag.
    so when your content is longer then your screen browser will display scroll bar automatically.
    I hope this will help you.
    Thanks and Regards.
    eCommerce Developer
    Edited by: Ecommerce Developer on Jul 9, 2009 5:58 PM
    Edited by: Ecommerce Developer on Jul 9, 2009 5:59 PM

  • Just updated to Firefox 8, and my auto scroll on my touchpad no longer works. Any help?!

    Auto Scroll is checked in the advanced settings/options, but still not working. Arrow keys do work to scroll, but I do not use those....So far I'm not impressed with the updated firefox! Not liking the way it's set up!!

    Not sure whether this link can help:
    https://support.mozilla.com/en-US/questions/874268?s=trackpad+scroll&r=1&as=s

  • Auto scrolling dynamic text field(news ticker)

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3272625483_2679871
    Content-type: text/plain;
    charset="US-ASCII"
    Content-transfer-encoding: 7bit
    Does anyone know how to make a scrollable dynamic text field
    scroll on its
    own and also with user interaction?
    Thanks in advance for your help.
    Bill
    --B_3272625483_2679871
    Content-type: text/html;
    charset="US-ASCII"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Auto scrolling dynamic text field(news
    ticker)</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Does =
    anyone know how to make a scrollable dynamic text field
    scroll on its own an=
    d also with user interaction?<BR>
    <BR>
    Thanks in advance for your help.<BR>
    <BR>
    Bill</SPAN></FONT>
    </BODY>
    </HTML>
    --B_3272625483_2679871--

    I found this:
    http://www.kirupa.com/developer/mx/dynamic_scroller.htm
    I copied the actual scroller and put it in my .fla and it
    worked! Now if I can only figure out links in XML...

  • My auto-scroll 3rd button does not work in FireFox 3.6. It worked in previous FF versions.

    I have updated FireFox. My auto-scroll 3rd button now does not work in this version, 3.6 I have updated my mouse and checked the TOOLS "Use auto-scroll"... still it does not work.
    I need my equipment to work. PLEASE FIX

    I hate to sound like a broken record, DONE THAT ALREADY. _ _ _
    I've ALSO learned to reboot after an uninstall then manually delete any residue in said uninstalled program. I've also gone as far as REGISTER searching for program residue and deleting that WITH reboot of coarse to be sure nothing has gone wrong. _ _ _ NEXT suggestion? I suggest FireFox fix there software. _ _ _ BY-THE-WAY,... I have also gone through my mouses buttton choices for my #5 button. Everything works but the "Auto-Scroll". One tab down/up/right/left works, one page down/up/left/right works. _ _ _ I used recently tried and successfully used the Auto-Scroll in Netscape, Opera, My Browser, Ace Browser, Chrome, and 2 others that escape my memory. _ _ _ PLEASE READ and understand this. >>> It's FireFox's software that is stopping this, not my mouse or PC.

Maybe you are looking for

  • When to call DocumentInstance.refresh()

    I have a jsp page that takes URL encoded prompt name/value pairs, opens reports, fills in the prompts from the name/value pairs, refreshes the reports, and returns the results as a PDF file.  It needs to be able to handle Web Intelligence reports and

  • Autimatic trigger of packaging material in a sales order

    Hi, I am trying to understand client SAP system.When I try to create a Sales Order with one line item (material type = FERT) the system automatically triggers a second line item (material type = VERP). If anybody has come across this kind of requirem

  • Service Contract (item category D)

    Hello,    I created a contract for service for painting of the building. Used docuement type WK, item category D and account assigned cost centre. I gave at the line item level (outline level) the description as painting of building and at service sp

  • I want to get rid of my guest user account. It will not let me delete it from the user

    I did not have the guest user account available and then after I changed some of my setting for my mail, I noticed that when I logged back in the guest user icon was present.  I do not want to have this guest user account on my log in screen.  I trie

  • Logical standby issue after adding a new user at production db server

    Hello Experts, I am facing a issue related to logical standby db server where after adding a new user at production db server logical standby has stopped sql apply. Can anybody give some idea to find out the root cause and give some tips to resolve t