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

FancytreeNode.render(true) moves the node to the end of the list #486

Closed
aureole82 opened this issue Aug 17, 2015 · 2 comments
Closed

FancytreeNode.render(true) moves the node to the end of the list #486

aureole82 opened this issue Aug 17, 2015 · 2 comments
Labels

Comments

@aureole82
Copy link

I use the glyph extension and the iconclass handler to express som custom icons.

It seems render(true) is the only way to get the iconclass handler invoked. Unfortunately render(true) sorts the calling node down to the bottom:

http://jsfiddle.net/8syp87a1/

@mar10 mar10 added the bug label Aug 21, 2015
@mar10
Copy link
Owner

mar10 commented Aug 23, 2015

A more performant (and working) way would be to call node.renderTitle() instead.
(Also node.parent.render(true) or even tree.render(true) would work, but that would be overkill.)

Anyway the current behavior for node.render() seems to be buggy - thanks for reporting.

@mar10 mar10 closed this as completed in 19cae40 Aug 23, 2015
@aureole82
Copy link
Author

Yes, node.renderTitle() works and calls the iconclass handler.

But it seems that it doesn't call my custom renderNode handler. So I'm looking forward on the next release with your fix.

Thanks

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