I suspect your problem is that you seem to be rebuilding the entire contents every time you add a line. Try using a VerticalPanel inside a ScrollPanel to hold your chat lines (one HTML widget per line), instead of using a single HTML widget.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Czarna Foka Sent: Friday, September 12, 2008 18:09 To: Google Web Toolkit Subject: slow scrolling in gwt 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
