[NUI] Make a color visual of View's shadow to center aligned (#1616)
authorJiyun Yang <ji.yang@samsung.com>
Wed, 27 May 2020 07:48:32 +0000 (16:48 +0900)
committerGitHub <noreply@github.com>
Wed, 27 May 2020 07:48:32 +0000 (16:48 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/ViewProperty/ShadowBase.cs

index 3c993a8..dfac507 100644 (file)
@@ -206,7 +206,10 @@ namespace Tizen.NUI
                 transformMap[(int)VisualTransformPropertyType.ExtraSize] = PropertyValue.CreateWithGuard(Extents);
             }
 
-            return transformMap.Count() == 0 ? new PropertyValue() : new PropertyValue(transformMap);
+            transformMap[(int)VisualTransformPropertyType.Origin] = new PropertyValue((int)Visual.AlignType.Center);
+            transformMap[(int)VisualTransformPropertyType.AnchorPoint] = new PropertyValue((int)Visual.AlignType.Center);
+
+            return new PropertyValue(transformMap);
         }
 
         /// <summary>