diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-07 13:33:24 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-07 13:33:24 +0200 |
| commit | 6ed849ee54a2f30315a622242f38dce92a309991 (patch) | |
| tree | d355caf909d287adcdd89c5afe6b1f1bdd2ba748 /Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs | |
| parent | 8d2dc68fdddc51bc24ac6f41feb97460a7d27372 (diff) | |
| download | Tango-6ed849ee54a2f30315a622242f38dce92a309991.tar.gz Tango-6ed849ee54a2f30315a622242f38dce92a309991.zip | |
Added Application Firmware Versions To Machine Designer.
Diffstat (limited to 'Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs index 122954de8..fe58367aa 100644 --- a/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs +++ b/Software/Visual_Studio/Tango.DragAndDrop/DragAndDropService.cs @@ -452,7 +452,8 @@ namespace Tango.DragAndDrop //Point dropPoint = dropElement.TransformToAncestor(rootElement).Transform(new Point(0, 0)); Point dropPoint = dropElement.PointToScreen(new Point(0, 0)); - Rect dropRect = new Rect(dropPoint, new Size(dropElement.ActualWidth, dropElement.ActualHeight)); + var dropElementScaledSize = dropElement.PointToScreen(new Point(dropElement.ActualWidth, dropElement.ActualHeight)) - dropElement.PointToScreen(new Point(0, 0)); + Rect dropRect = new Rect(dropPoint, new Size(dropElementScaledSize.X, dropElementScaledSize.Y)); Rect dragRect = new Rect(Canvas.GetLeft(_dragBorder), Canvas.GetTop(_dragBorder), _dragBorder.Width / 2, _dragBorder.Height); Point mousePoint = rootElement.PointToScreen(Mouse.GetPosition(rootElement)); |
