From 689a6d20ffa428b8de8d294ba6df80ef31533e46 Mon Sep 17 00:00:00 2001 From: Xiangyin Ma Date: Fri, 14 Oct 2016 18:58:11 +0100 Subject: [PATCH] [3.0] Remove GetRendererAt() from dali-demo Change-Id: I6f8981be9fdb5de381449710c32f37f61483aea6 --- demo/dali-table-view.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/dali-table-view.cpp b/demo/dali-table-view.cpp index 827b665..f84667e 100644 --- a/demo/dali-table-view.cpp +++ b/demo/dali-table-view.cpp @@ -252,6 +252,8 @@ void DaliTableView::Initialize( Application& application ) logo.SetAnchorPoint( AnchorPoint::TOP_CENTER ); logo.SetParentOrigin( Vector3( 0.5f, 0.1f, 0.5f ) ); logo.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS ); + // The logo should appear on top of everything. + logo.SetDrawMode( DrawMode::OVERLAY_2D ); // Show version in a popup when log is tapped mLogoTapDetector = TapGestureDetector::New(); @@ -284,8 +286,6 @@ void DaliTableView::Initialize( Application& application ) SetupBackground( bubbleContainer ); mRootActor.Add( logo ); - // We use depth index to bring the logo above the bubbles (as an alternative to creating actors). - logo.GetRendererAt( 0 ).SetProperty( Renderer::Property::DEPTH_INDEX, 30000 ); mRootActor.Add( bubbleContainer ); mRootActor.Add( mScrollView ); -- 2.7.4