IgniteUI / ignite-ui

Ignite UI for jQuery by Infragistics

Home Page:https://bit.ly/2kuu1fT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Run the attached sample
  2. Exand several nodes to expand the tree beyond the border of the container
  3. 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

tree_scroll.zip

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