Skip to content

Commit 3ec17bd

Browse files
committed
Fixing issue #18: Drag n'drop not working anymore after reordering items
1 parent 6e0fea5 commit 3ec17bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WindowsPathEditor/DragDropListBox/DraggedAdorner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void SetPosition(double left, double top)
3535
// near the mouse cursor when dragging.
3636
this.left = left - 1;
3737
this.top = top + 13;
38-
if (this.adornerLayer != null)
38+
if (this.adornerLayer != null && this.contentPresenter.Content != null)
3939
{
4040
this.adornerLayer.Update(this.AdornedElement);
4141
}

0 commit comments

Comments
 (0)