From: Richard Huang Date: Mon, 6 Jul 2015 16:04:17 +0000 (+0100) Subject: Fix scroll bar to draw in the overlay mode X-Git-Tag: dali_1.0.49~18^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F43000%2F10;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Fix scroll bar to draw in the overlay mode Change-Id: Ifb2ba8123c9f858c33a93a559cc612d762ff51b6 --- diff --git a/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp b/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp index d828897..1ef1e47 100755 --- a/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp +++ b/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp @@ -175,6 +175,7 @@ ScrollBar::~ScrollBar() void ScrollBar::OnInitialize() { CreateDefaultIndicatorActor(); + Self().SetDrawMode(DrawMode::OVERLAY); } void ScrollBar::SetScrollPropertySource( Handle handle, Property::Index propertyScrollPosition, Property::Index propertyMinScrollPosition, Property::Index propertyMaxScrollPosition, Property::Index propertyScrollContentSize ) @@ -217,9 +218,7 @@ void ScrollBar::SetScrollIndicator( Actor indicator ) if( indicator ) { mIndicator = indicator; - - Actor self = Self(); - self.Add(mIndicator); + Self().Add(mIndicator); if( !mPanGestureDetector ) {