Merge "Modified control depth index ranges so they have less impact on sorting algori...
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 14 Jul 2015 13:28:57 +0000 (06:28 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 14 Jul 2015 13:28:57 +0000 (06:28 -0700)
dali-toolkit/public-api/controls/control-depth-index-ranges.h

index e9fc76a..1a55cf2 100644 (file)
  *
  */
 
+#include <dali/public-api/actors/layer.h>
 namespace Dali
 {
 namespace Toolkit
 {
 enum ControlDepthIndexRanges
 {
-    BACKGROUND_DEPTH_INDEX    = -10000000,
-    CONTENT_DEPTH_INDEX       =  0,
-    DECORATION_DEPTH_INDEX    =  10000000
+    BACKGROUND_DEPTH_INDEX    = static_cast<int>( -Dali::Layer::TREE_DEPTH_MULTIPLIER * 0.1f ),
+    CONTENT_DEPTH_INDEX       = 0,
+    DECORATION_DEPTH_INDEX    = static_cast<int>( Dali::Layer::TREE_DEPTH_MULTIPLIER * 0.1f )
 };
 
 }