ItemView cache should always be refreshed during scrolling 93/24193/1
authorRichard Huang <r.huang@samsung.com>
Fri, 27 Jun 2014 10:40:35 +0000 (11:40 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:52 +0000 (18:47 +0100)
[problem]      When ItemView is scrolling, activate a new layout and no new items are
               created.
[cause]        Caching extra items are avoided when activating new layout in order to
               improve the performance. However, new layout can be activated during
               scrolling, and no new items are created in that case.
[solution]     Always refresh the cache with extra items while scrolling.

Change-Id: I12a5810b2c35891d1928a9853a6ed1d21e1eada4
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp

index fdb1d88..03fe7b4 100644 (file)
@@ -637,7 +637,7 @@ AlphaFunction ItemView::GetDefaultAlphaFunction() const
 
 void ItemView::OnRefreshNotification(PropertyNotification& source)
 {
-  if(mRefreshEnabled)
+  if(mRefreshEnabled || mScrollAnimation)
   {
     // Only refresh the cache during normal scrolling
     DoRefresh(GetCurrentLayoutPosition(0), true);