From 33401a361b4c679f8fef38523f1ce53f60fcee4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 22 Sep 2016 15:59:31 +0200 Subject: [PATCH] [escher] do not display the scroll indicator when unneeded Change-Id: Ife24fa2fe175b3d944749ff4a1ea8e2017f04048 --- escher/src/scroll_view_indicator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/escher/src/scroll_view_indicator.cpp b/escher/src/scroll_view_indicator.cpp index e06e6bc19..1b17c8e47 100644 --- a/escher/src/scroll_view_indicator.cpp +++ b/escher/src/scroll_view_indicator.cpp @@ -15,6 +15,10 @@ ScrollViewIndicator::ScrollViewIndicator(ScrollViewIndicator::Direction directio } void ScrollViewIndicator::drawRect(KDContext * ctx, KDRect rect) const { + if (m_start <= 0 && m_end >=1) { + return; + } + ctx->fillRect(bounds(), k_backgroundColor); KDRect indicatorFrame = KDRectZero; if (m_direction == Direction::Horizontal) {