Set false in inherit layout direction when SetProperty( LAYOUT_DIRECTION, ... ) is... 60/148360/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 7 Sep 2017 13:49:14 +0000 (22:49 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 7 Sep 2017 13:54:58 +0000 (22:54 +0900)
 - If app developer SetProperty( LAYOUT_DIRECTION, ... ), INHERIT_LAYOUT_DIRECTION should be always false.

Change-Id: Ifc1855e667e188c3d8dd468aa188c7acac268733

dali/internal/event/actors/actor-impl.cpp

index f7df4d4..e1675cf 100644 (file)
@@ -2887,10 +2887,10 @@ void Actor::SetDefaultProperty( Property::Index index, const Property::Value& pr
     case Dali::DevelActor::Property::LAYOUT_DIRECTION:
     {
       Dali::DevelActor::LayoutDirection::Type direction = mLayoutDirection;
+      mInheritLayoutDirection = false;
 
       if( Scripting::GetEnumerationProperty< DevelActor::LayoutDirection::Type >( property, LAYOUT_DIRECTION_TABLE, LAYOUT_DIRECTION_TABLE_COUNT, direction ) )
       {
-        mInheritLayoutDirection = false;
         InheritLayoutDirectionRecursively( this, direction, true );
       }
       break;