Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using the new tree.expandAll(true) method an TypeError occures #963

Closed
ewya opened this issue Sep 12, 2019 · 1 comment
Closed

When using the new tree.expandAll(true) method an TypeError occures #963

ewya opened this issue Sep 12, 2019 · 1 comment
Labels

Comments

@ewya
Copy link
Contributor

ewya commented Sep 12, 2019

When using the new tree.expandAll(true) method an TypeError occures.

It seems that the (lastChild) node has not been rendered already (the affected node node.span is undefined).

browser's debug console:
TypeError: k(...).offset(...) is undefined at jquery.fancytree-all.min.js:33:15806

Steps to Reproduce the Problem

  1. Load the tre with option autoScroll
  2. trigger tree.expandAll(true)
@mar10 mar10 added the bug label Sep 17, 2019
@mar10
Copy link
Owner

mar10 commented Sep 17, 2019

tree.expandAll() wraps the recursive calls to multiple node.setExpanded() in enableUpdate(false) for improved performance.
=>
autoScroll should be ignored in this case as well, but called by enableUpdate(true) at the end of the sequence.

@mar10 mar10 closed this as completed in 8a5f22e Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants