Size negotiation patch 4: Remove SetRelayoutEnabled
[platform/core/uifw/dali-demo.git] / examples / builder / examples.cpp
index e00c114..f43ba1e 100644 (file)
@@ -287,7 +287,6 @@ public:
     mFiles.clear();
 
     mItemView = ItemView::New(*this);
-    mItemView.SetRelayoutEnabled( false );
     stage.Add( mItemView );
     mItemView.SetParentOrigin(ParentOrigin::CENTER);
     mItemView.SetAnchorPoint(AnchorPoint::CENTER);
@@ -395,7 +394,7 @@ public:
   {
     TextLabel label = TextLabel::New( ShortName( text ) );
     label.SetProperty( Dali::Toolkit::Control::Property::STYLE_NAME, "builderlabel" );
-    label.SetResizePolicy( FILL_TO_PARENT, WIDTH );
+    label.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
 
     // Hook up tap detector
     mTapDetector.Attach( label );
@@ -469,9 +468,6 @@ public:
     }
 
     builder.AddActors( layer );
-
-    // Force relayout on layer
-    layer.RelayoutRequestTree();
   }