-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
addChildren throws error when ext-grid is hidden #978
Comments
Thank you for contributing! 👍 It looks like you're using Vue.js? Does the problem occur without that framework as well? In order to process your issue, we need some more information, explanation what already was tried and/or concrete data. A debuggable example (jsFiddle, Plunkr, CodePen, ...) may be helpful. Please read the Contribution Guidelines for some hints on how to submit helpful feature requests and bug reports. |
some info is missing, the tree is in a display none div. |
1/0 does evaluate to NaN, which is falsy, so this line newCount = Math.floor(free / trHeight) || 0; is a hack for newCount = trHeight ? Math.floor(free / trHeight) : 0; which would be more clear, I admit. |
the two version is not equal at least in firefox: var free=10 thanks for the un-hack version anyway. |
the callstack is below:
jquery.fancytree.grid.js?8b9c:807 Uncaught (in promise) TypeError: Cannot set property 'ftnode' of undefined
at Fancytree.nodeRender (jquery.fancytree.grid.js?8b9c:807)
at Fancytree.eval [as nodeRender] (jquery.fancytree.js?f020:335)
at Fancytree._callHook (jquery.fancytree.js?f020:2785)
at FancytreeNode.render (jquery.fancytree.js?f020:1961)
at FancytreeNode.addChildren (jquery.fancytree.js?f020:667)
at VueComponent.asyncNodeSelectStatus (addressBook.vue?3315:284)
The text was updated successfully, but these errors were encountered: