when dismiss popup, the shadow does not disappear.
-An error occurs after changing the parent to GetParent ().
-layer of converting View is null.
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
" right:" + _layoutPositionData.Right +
" bottom:" + _layoutPositionData.Bottom);
- var ownerParent = Owner.GetParent() as View;
- if (ownerParent != null && ownerParent.Layout != null && ownerParent.Layout.LayoutWithTransition)
+ Container onwerContainer = Owner.GetParent();
+ View onwerView = onwerContainer is Layer ? new View(Layer.getCPtr(onwerContainer).Handle, false) : onwerContainer as View;
+
+ if (onwerView != null && onwerView.Layout != null && onwerView.Layout.LayoutWithTransition)
{
NUIApplication.GetDefaultWindow().LayoutController.AddTransitionDataEntry(_layoutPositionData);
}