X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fflex-container%2Fflex-container-impl.cpp;h=0fc7588afc76765feb7a062d7e85d946e48a49d3;hb=091d04794a201f1171294e54ab0cb8e69ac2c807;hp=98d801bd2efcaf56cf8208e67cd3a61dcecd408e;hpb=8c98262c52c72d5767c4552bb3c294a1565aefaa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/flex-container/flex-container-impl.cpp b/dali-toolkit/internal/controls/flex-container/flex-container-impl.cpp index 98d801b..0fc7588 100755 --- a/dali-toolkit/internal/controls/flex-container/flex-container-impl.cpp +++ b/dali-toolkit/internal/controls/flex-container/flex-container-impl.cpp @@ -515,7 +515,7 @@ void FlexContainer::OnRelayout( const Vector2& size, RelayoutContainer& containe if( child ) { // Anchor actor to top left of the container - if( child.GetProperty( DevelActor::Property::POSITION_USES_ANCHOR_POINT ).Get< bool >() ) + if( child.GetProperty( Actor::Property::POSITION_USES_ANCHOR_POINT ).Get< bool >() ) { child.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); } @@ -704,8 +704,8 @@ void FlexContainer::RelayoutChildren() Dali::Actor child = mChildrenNodes[i].actor.GetHandle(); if( child ) { - child.SetX( YGNodeLayoutGetLeft( mChildrenNodes[i].node ) ); - child.SetY( YGNodeLayoutGetTop( mChildrenNodes[i].node ) ); + child.SetProperty( Actor::Property::POSITION_X, YGNodeLayoutGetLeft( mChildrenNodes[i].node ) ); + child.SetProperty( Actor::Property::POSITION_Y, YGNodeLayoutGetTop( mChildrenNodes[i].node ) ); } } } @@ -760,7 +760,7 @@ Actor FlexContainer::GetNextKeyboardFocusableActor(Actor currentFocusedActor, To { break; } - } while ( !mChildrenNodes[nextFocusedActorIndex].actor.GetHandle().IsKeyboardFocusable() ); + } while ( !mChildrenNodes[nextFocusedActorIndex].actor.GetHandle().GetProperty< bool >( Actor::Property::KEYBOARD_FOCUSABLE ) ); break; } case Toolkit::Control::KeyboardFocus::RIGHT: @@ -782,7 +782,7 @@ Actor FlexContainer::GetNextKeyboardFocusableActor(Actor currentFocusedActor, To { break; } - } while ( !mChildrenNodes[nextFocusedActorIndex].actor.GetHandle().IsKeyboardFocusable() ); + } while ( !mChildrenNodes[nextFocusedActorIndex].actor.GetHandle().GetProperty< bool >( Actor::Property::KEYBOARD_FOCUSABLE ) ); break; } default: @@ -842,7 +842,7 @@ void FlexContainer::OnInitialize() YGNodeStyleSetAlignContent( mRootNode.node, static_cast( mAlignContent ) ); // Make self as keyboard focusable and focus group - self.SetKeyboardFocusable( true ); + self.SetProperty( Actor::Property::KEYBOARD_FOCUSABLE, true ); SetAsKeyboardFocusGroup( true ); }