wicket-dnd icon indicating copy to clipboard operation
wicket-dnd copied to clipboard

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

Open RobAu opened this issue 9 years ago • 2 comments

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.

RobAu avatar Apr 08 '15 13:04 RobAu

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?

svenmeier avatar Apr 13 '15 09:04 svenmeier

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

RobAu avatar Apr 29 '15 15:04 RobAu