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
Post a Comment