From: wonyoung12.lee Date: Fri, 14 Jun 2013 13:30:11 +0000 (+0900) Subject: Modify for N_SE-41271 : Add reset scrolllength logic when draw empty Iconlistview X-Git-Tag: accepted/tizen/20130924.144426~1^2~528^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59789ce82bf951bc59a77268460a473e61ea11f2;p=platform%2Fframework%2Fnative%2Fuifw.git Modify for N_SE-41271 : Add reset scrolllength logic when draw empty Iconlistview Change-Id: I4128ab1102e7c157e4588955d97909076035f536 Signed-off-by: wonyoung12.lee --- diff --git a/src/ui/controls/FUiCtrl_IconListPresenter.cpp b/src/ui/controls/FUiCtrl_IconListPresenter.cpp index 82bab88..09d2b77 100644 --- a/src/ui/controls/FUiCtrl_IconListPresenter.cpp +++ b/src/ui/controls/FUiCtrl_IconListPresenter.cpp @@ -1528,6 +1528,15 @@ _IconListPresenter::DrawEmptyList(void) float bitmapWidth = 0.0f; const Bitmap* pBitmap = __pIconListView->GetBitmapOfEmptyList(); + // Reset Scroll Range & Position + _Scroll* pScroll = __pIconListView->GetScroll(); + if (pScroll != null) + { + __scrollLength = 0.0f; + pScroll->SetScrollRange(viewBounds.height, viewBounds.height); + pScroll->EnableScrollingEffect(false); + } + // set visual element or canvas for empty list if (!__needBaseCanvas && __pEmptyListVE == null) {