[NUI] Modify popup dismiss bug (#2336)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Mon, 7 Dec 2020 05:50:14 +0000 (14:50 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 8 Dec 2020 06:23:12 +0000 (15:23 +0900)
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>
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs

index 9607a22..e9160fe 100755 (executable)
@@ -597,8 +597,10 @@ namespace Tizen.NUI
                                                          " 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);
                 }