From: Taehyub Kim Date: Thu, 9 Jun 2022 08:37:34 +0000 (+0900) Subject: [NUI] Initialize Drag window position and size based on Shadow View X-Git-Tag: submit/tizen/20220610.085831~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf5265fa3745cc9e1f06f5703cba0e326c9359e0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Initialize Drag window position and size based on Shadow View --- diff --git a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs index 491875a61..c947e8f63 100755 --- a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs +++ b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs @@ -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();