[NUI] Initialize Drag window position and size based on Shadow View
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 9 Jun 2022 08:37:34 +0000 (17:37 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 10 Jun 2022 05:42:51 +0000 (14:42 +0900)
src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs

index 491875a617ba9b45bb81861acccaa720d140662d..c947e8f638b3c7da25b11eec67af5c3caf0ecbe9 100755 (executable)
@@ -96,9 +96,16 @@ namespace Tizen.NUI
                 };
             }
 
+            //Initialize Drag Window Position and Size based on Shadow View Position and Size
+            mDragWindow.SetPosition(new Position2D((int)shadowView.Position.X, (int)shadowView.Position.Y));
             mDragWindow.SetWindowSize(new Size(shadowWidth, shadowHeight));
+
+            //Make Shadow View Transparent
             shadowView.SetOpacity(0.9f);
 
+            //Make Position 0, 0 for Moving into Drag Window
+            shadowView.Position = new Position(0, 0);
+
             if (mShadowView)
             {
                 mShadowView.Hide();