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

Need some help with rtl for tree with a custom style #2797

Open
ElEmFurt opened this issue Oct 16, 2024 · 0 comments
Open

Need some help with rtl for tree with a custom style #2797

ElEmFurt opened this issue Oct 16, 2024 · 0 comments

Comments

@ElEmFurt
Copy link

Hi,

So I have been using this custom css I found somewhere on the internet for JStree and it worked perfectly when the site was in English. I am now tasked to convert the site (dynamically user based) to Arabic and the direction=rtl breaks the tree.

I am attaching the css as well as images of how the tree looks, could you please help me with how to fix the tree when in RTL direction? Some guidance would help, as I am at a total loss as to how to fix the tree.

Also this is my tree initialization code
var tree = $("#tree").jstree({ "checkbox": { "keep_selected_style": false, }, "search": { "show_only_matches": true, 'show_only_matches_children': true }, "plugins": ["checkbox", "search"] });

Normal view
image

Arabic view
image

Attached custom css file.
Jstree-custom.zip

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