From c3c434fd5641f52a225978fe9c03bb4faf413c21 Mon Sep 17 00:00:00 2001 From: SangYong Lee Date: Mon, 1 Jul 2013 14:11:24 +0900 Subject: [PATCH] Modified scrollbar effect when begin Change-Id: If978919468ab32d61f28544b783988302db85706 Signed-off-by: SangYong Lee --- src/ui/controls/FUiCtrl_TableViewPresenter.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui/controls/FUiCtrl_TableViewPresenter.cpp b/src/ui/controls/FUiCtrl_TableViewPresenter.cpp index e466960..52d64af 100644 --- a/src/ui/controls/FUiCtrl_TableViewPresenter.cpp +++ b/src/ui/controls/FUiCtrl_TableViewPresenter.cpp @@ -1100,8 +1100,10 @@ _TableViewPresenter::PreloadItem(void) PresetItemHeightList(); AdjustClientAreaBounds(true); - if (__pTableView->GetScrollStyle() == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL - || __pTableView->GetScrollStyle() == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL_FIXED) + TableViewScrollBarStyle scrollStyle = __pTableView->GetScrollStyle(); + + if (scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL + || scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL_FIXED) { _FastScroll* pFastScroll = __pTableView->GetFastScrollBar(); if (pFastScroll != null) @@ -1110,6 +1112,13 @@ _TableViewPresenter::PreloadItem(void) pFastScroll->SetScrollVisibility(IsScrollable()); } } + else if (scrollStyle != TABLE_VIEW_SCROLL_BAR_STYLE_NONE) + { + if (IsScrollable()) + { + FadeInScrollBar(); + } + } return true; } -- 2.7.4