From: Richard Huang Date: Fri, 27 Jun 2014 10:40:35 +0000 (+0100) Subject: ItemView cache should always be refreshed during scrolling X-Git-Tag: dali_1.0.0~18 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=bc67da251f806cfa64940c3799eeafb1fc6d8c73 ItemView cache should always be refreshed during scrolling [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 --- diff --git a/base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp b/base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp index fdb1d88..03fe7b4 100644 --- a/base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp +++ b/base/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp @@ -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);