Merge "[3.0] Fixed dali-demo keyboard focus and updated appearance" into tizen_3.0 accepted/tizen/3.0/common/20161114.143225 accepted/tizen/3.0/ivi/20161110.071816 accepted/tizen/3.0/mobile/20161110.071620 accepted/tizen/3.0/tv/20161110.071718 accepted/tizen/3.0/wearable/20161110.071748 submit/tizen_3.0/20161110.051014 submit/tizen_3.0_common/20161114.081136
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Thu, 10 Nov 2016 05:20:03 +0000 (21:20 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 10 Nov 2016 05:20:03 +0000 (21:20 -0800)
demo/dali-table-view.cpp

index d3e422e..4be3e18 100644 (file)
@@ -260,6 +260,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();
@@ -292,8 +294,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 );