X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fimage-policies%2Fimage-policies-example.cpp;h=8860ef00371ef5eca38c7c0e6027b2f5cc203a62;hb=2e182925204bf3ef9f2a36cbfbf998e79fbafaf5;hp=f2132364bf23f47a65123b5ecf5e0d1fdb8a7110;hpb=cc86309efaef5f77c85ece1199f95e08534e4a32;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/image-policies/image-policies-example.cpp b/examples/image-policies/image-policies-example.cpp index f213236..8860ef0 100644 --- a/examples/image-policies/image-policies-example.cpp +++ b/examples/image-policies/image-policies-example.cpp @@ -398,7 +398,7 @@ class ImagePolicies: public ConnectionTracker mTable.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); mTable.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); Vector3 offset( 0.9f, 0.90f, 0.0f ); - mTable.SetSizeModeFactor( offset ); + mTable.SetProperty( Actor::Property::SIZE_MODE_FACTOR, offset ); mTable.SetFitHeight( TableRowPlacement::NEXT_BUTTON ); mTable.SetFitHeight( TableRowPlacement::LOADING_STATUS ); view.Add( mTable ); @@ -416,8 +416,8 @@ class ImagePolicies: public ConnectionTracker mNextButton.SetProperty( Button::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL, LOADING_IMAGE ); mNextButton.SetProperty( Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL, NEXT_BUTTON_DISABLED_IMAGE ); mNextButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER ); - mNextButton.SetY( -50.0f ); - mNextButton.SetSize( 100.0f, 100.0f ); + mNextButton.SetProperty( Actor::Property::POSITION_Y, -50.0f ); + mNextButton.SetProperty( Actor::Property::SIZE, Vector2( 100.0f, 100.0f ) ); mNextButton.ClickedSignal().Connect( this, &ImagePolicies::ChangeImageClicked ); mTable.AddChild( mNextButton, TableView::CellPosition( TableRowPlacement::NEXT_BUTTON, 0 ) ); mTable.SetCellPadding( Vector2( 2.0f, 2.0f ) );