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

Element label doesn't wrap inside #97

Open
leomastoras opened this issue Jan 28, 2016 · 2 comments
Open

Element label doesn't wrap inside #97

leomastoras opened this issue Jan 28, 2016 · 2 comments

Comments

@leomastoras
Copy link

Thanks for this amazing tree! I have an issue ive been trying to fix with no luck so far. as you can see here http://goo.gl/kO6WJp if the tree is too deep and the width too small the elements move outside the tree. is it possible to fix this somehow so that they wrap inside? thanks

@leomastoras
Copy link
Author

in case someone else needs it
i fixed it by changing the following in the .css

for all these classes instead of

ul.nav.abn-tree .level-1 .indented {
position: relative;
left: 0px;
} ...

i used
ul.nav.abn-tree .level-1 .indented {
position: relative;
padding-left: 0px;
}

(changed left to padding-left)

and at the end i used

ul.nav.nav-list.abn-tree span {
padding:0px !important;
}

@eamaya82
Copy link

the comment of @leomastoras worked for me but it did not solve the whole problem, I did not want to modify the CSS so I added it in another file so that it would overwrite it, I also modified some things ... staying like this ...

ul.nav.abn-tree .level-1 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 0px );
}
ul.nav.abn-tree .level-2 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 20px );
}
ul.nav.abn-tree .level-3 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 40px );
}
ul.nav.abn-tree .level-4 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 60px );
}
ul.nav.abn-tree .level-5 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 80px );
}
ul.nav.abn-tree .level-6 .indented {
    position: relative;
    padding-left: 0px;
    display: inline-flex;
    max-width: calc(100% - 100px );
}

ul.nav.nav-list.abn-tree span {
    padding: 0px !important;
}

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

2 participants