[3.0] Remove GetRendererAt() from dali-demo 36/96436/1
authorXiangyin Ma <x1.ma@samsung.com>
Fri, 14 Oct 2016 17:58:11 +0000 (18:58 +0100)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 9 Nov 2016 04:40:27 +0000 (13:40 +0900)
Change-Id: I6f8981be9fdb5de381449710c32f37f61483aea6

demo/dali-table-view.cpp

index 827b665..f84667e 100644 (file)
@@ -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 );