Hi Perhaps a way is not to keep all the lines in the scroll panel - only the last 100 or so. When new lines are added after 100 remove the old ones and if you need to, keep them in a buffer. Then when someone scrolls back up past 100 lines you can add them back to the buffer. In other words the scroll bar is virtual.
Hth Len 2008/9/13 Czarna Foka <[EMAIL PROTECTED]>: > > Hi > I'm very exciting of power of gwt and I have great idea for web > application but... > One of component on my application will be group chat so I try do > performance tests and it shows me that scrolling in gwt isn't very > fast. > > I did chat component as HTML inside ScrollPanel and client side > receive message from server and appends it on the end of HTML and next > step is scrolling ScrollPanel to bottom. All works fine till when HTML > contains more rows than about 2000. After this one more message cause > that scrolling take 100% power of computer for short time (less 1 > second). I need optimize it, please help me.... maybe other component? > In gmail chat this problem not appears, why? :) > > My procedure on client side looks like: > > 1. in loop add message(s) to StringBuilder > 2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's > Widget) > 3. ScrollPanel.scrollToBottom > > any suggestions? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---