svenmeier / wicket-dnd

Wicket drag-and-drop
20 stars 14 forks source link

Drop-indicator is in incorrect position when parent element is scrolled #12

Open RobAu opened 9 years ago

RobAu commented 9 years ago

My excuses for the somewhat vague title; but the case is simple: I have a big div that contains a list of elements. These elements are larger that the div, so the div get a scrollbar. When the list is scrolled down, the elements in the list (that are droppable) are moved 'up'. The drop-indicator however still works like the list hasn't scrolled.

svenmeier commented 9 years ago

Hi Rob,

ListsExample in wicket-dnd-examples shows how that is supposed to work: "position:relative;" makes all positions of the drop-indicator relative to the dropTarget. Perhaps you've added the dropTarget to a markup element outside of the scrolled area?

RobAu commented 9 years ago

Ah. That makes sense. Will try to change it. Thanks!