PDA

View Full Version : Panel redraw performance



JonAtkinson
24 Feb 2011, 12:08 PM
Hello,

We've recently come across what we think may be a bug in Sencha involving redrawing a panel when switching tabs. The panel redraws in sections, from the bottom-right to top-left, and once it has redrawn it is very slow to respond to scroll events.

This is probably better seen than described. We're using Sencha Touch 1.0.1a (and we see the same behaviour in the production and -debug.js files), and testing on an iPhone 4:


http://www.youtube.com/watch?v=3JP1TwS5IC4

The app itself is fairly simple. We have a TabPanel, containing a List, and on the tap event we display a Panel. As you can see form the video, when you switch tabs, then back again, that is when the slow redraw occurs. I can provide source code if necessary.

This seems to be related to these two threads, but neither contained any workaround or advice:

http://www.sencha.com/forum/showthread.php?112202-Strange-quot-repainting-quot-effect-when-starting-to-scroll-Ext.DataView&highlight=redraw

http://www.sencha.com/forum/showthread.php?111849-OPEN-406-All-panels-seem-to-redraw-on-first-scroll-since-0.96-release

Any help would be much appreciated.

--Jon