Revert "[3.0] Remove GetRendererAt() from dali-demo" 03/97803/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 04:59:03 +0000 (13:59 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 04:59:06 +0000 (13:59 +0900)
This reverts commit ab8c452220b4f35d12838694b4ac75c3a9d9d63b.

Change-Id: I10eceaee97c7994dbdaa0ac757c4cd4be2032762

demo/dali-table-view.cpp

index f84667e..827b665 100644 (file)
@@ -252,8 +252,6 @@ 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();
@@ -286,6 +284,8 @@ 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 );