DropTargetAdorners.Highlight has wrong location
RedX2501 opened this issue · 2 comments
Describe the bug
When you have non-visible elements the Highlight border is misaligned.
To Reproduce
Steps to reproduce the behavior:
Open project, drag element onto target element.
This project uses the latest version with .net 6 but I have the problem with .net framework 4.7.2.
Expected behavior
The highlight border should be around the gray element but is offset.
The computation of the size to highlight is correct but the offset is not.
Desktop (please complete the following information):
-
OS: Win 10
-
Version: DragDrop 3.1.1
Additional context
Add any other context about the problem here.
I do realize that a workaround exists by moving the dd:IsDropTarget to the border.
I do still think this is a problem since there is a code to calculate the accurate size of the target but the offset is not considered.