DezrtRose / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Callback after all tree rendering, including fx duration, has completed #481

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What new or enhanced feature are you proposing?
Delay onExpand callback until fx duration has completed
   --or--
New onFinish callback after dynatree has completed rendering the tree, 
including any fx duration

What goal would this enhancement help you achieve?
When the input field that will receive the selected node is positioned closer 
to the bottom edge of the viewport than the top, I want to position the 
dynatree immediately above that input field, leaving more height to display the 
tree.  The bottom edge of the tree should appear immediately above the input 
field.

This works when fx: null.  However, when fx: { height: "toggle", duration: 200 
}, the onExpand callback returns before fx finishes.  After a collapse, the 
height of the tree, as measured in my onExpand callback, is greater than when 
fx finishes, resulting in the bottom edge of the dynatree rising away from the 
input field after the child nodes are hidden, rather than the top of the tree 
collapsing down.  (See example images)

Original issue reported on code.google.com by efriedma...@gmail.com on 2 Apr 2014 at 3:42

Attachments:

GoogleCodeExporter commented 8 years ago
Dynatree is feature-frozen, but this (and much more) is implemented in 2.0 
(Fancytree)

Original comment by moo...@wwwendt.de on 2 Apr 2014 at 4:14