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

Draw text boxes on tree view using bounding box for text #9

Open
chinchliff opened this issue Sep 13, 2013 · 0 comments
Open

Draw text boxes on tree view using bounding box for text #9

chinchliff opened this issue Sep 13, 2013 · 0 comments

Comments

@chinchliff
Copy link
Member

Currently the width of the rects for the otu labels on tree view is calculated from the number of characters in the name. But we are not using a fixed-width font so the actual dimensions of words containing the same number of characters vary. We compensate by making the boxes wider than they need to be for many words so that they are always (hopefully) wide enough for any word. There should be a way to select the text element of each node and get its bounding box so we can set the rects to that.

Alternatively, we could color the background of the text elements, but I haven't been able to get this to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant