Expose the jQuery UI Draggable's 'scroll' option to the igTree
dafo opened this issue · comments
Description
Expose the jQuery UI Draggable's 'scroll' option to the igTree so that the tree is scrolled when dragging a node and reaching the border of the container.
Steps to reproduce
- Run the attached sample
- Exand several nodes to expand the tree beyond the border of the container
- Start dragging a node and go beyond the border of the container
Result
The tree is not scrolled
Expected result
The tree is scrolled
Attachments
After investigating this issue further, it appears that no additional options should be exposed. The desired scenario may be achieved by setting 'overflow: scroll; position: relative;' to the element that contains the tree. I am attaching an updated sample that demonstrates this.
tree_scroll.zip