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

Render noExpander icon from icon map for leaf nodes #194

Closed

Conversation

smeyfroi
Copy link
Contributor

I'm making this PR to highlight a feature request (no expander icons on leaf nodes), and to propose one limited solution for my specific use-case.

This is not the right answer and should not be merged: it works for FontAwesome where the .fa class is a good way to get an empty space. I don't know whether glyphicons has anything similar. And this patch doesn't solve the problem for non-glyph rendering where an empty image is probably required.

For reference, this patch requires this as part of a fontawesome config for the glyph extension: glyph:{map:{noExpander:"fa"}}

This is not the right answer and should not be merged: it works for FontAwesome where the .fa class is a good way to get an empty space. I don't know whether glyph icons has anything similar. And this doesn't solve the problem for non-glyph rendering. For reference, this patch requires this as part of a fontawesome config for the glyph extension: ```glyph:{map:{noExpander:"fa"}}```
@mar10 mar10 added this to the 2.0.0 Backlog milestone Apr 15, 2014
@mar10
Copy link
Owner

mar10 commented Apr 24, 2014

Did you try with {map:{noExpander:""}}?
This might work, since the extensions of the (empty) span are set to 1em.
If you confirm that this works for you, please add noExpander: "" to the default map, and I will merge.

@mar10 mar10 added bug labels Apr 27, 2014
@mar10 mar10 modified the milestone: 2.0.0 Backlog Apr 27, 2014
@mar10 mar10 closed this in dd0de2a Apr 27, 2014
@smeyfroi
Copy link
Contributor Author

@mar10 I tried this out last night: works well, thanks for merging.

@mar10
Copy link
Owner

mar10 commented Apr 29, 2014

thanks for contributing. I merged locally and lost your commit history; sorry.

@mar10 mar10 modified the milestones: 2.0.0beta, v2.0.0 May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants