My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 481: Callback after all tree rendering, including fx duration, has completed
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Apr 2014


 
Reported by efriedma...@gmail.com, Apr 2, 2014
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)

Dynatree positioning images.zip
73.1 KB   Download
Apr 2, 2014
Project Member #1 moo...@wwwendt.de
Dynatree is feature-frozen, but this (and much more) is implemented in 2.0 (Fancytree)
Status: Done
Labels: Milestone-Release2.0

Powered by Google Project Hosting