Modify for N_SE-41271 : Add reset scrolllength logic when draw empty Iconlistview
authorwonyoung12.lee <wonyoung12.lee@samsung.com>
Fri, 14 Jun 2013 13:30:11 +0000 (22:30 +0900)
committerwonyoung12.lee <wonyoung12.lee@samsung.com>
Fri, 14 Jun 2013 15:56:29 +0000 (00:56 +0900)
Change-Id: I4128ab1102e7c157e4588955d97909076035f536
Signed-off-by: wonyoung12.lee <wonyoung12.lee@samsung.com>
src/ui/controls/FUiCtrl_IconListPresenter.cpp

index 82bab88..09d2b77 100644 (file)
@@ -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)
        {