javascript - Parent div does not scroll on dragging a child inside of it -


i have parent div many child divs.

i want when child div dragged inside parent div, parent div scroll. when parent div body, works. want work own parent "content" div.

here js example of problem: http://jsfiddle.net/yzx4ft46/

any ideas why doesn't work?

it seems parent div must have position: relative , started working:)

since cloned element has position absolute , absolute positioning positioned according first parent element other static positioning, needed parent element have position: relative.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -