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

Is there way to adjust resizableBox for arabic language modal (right to left ) ? #185

Open
1 of 3 tasks
laubeltran1 opened this issue Jan 26, 2022 · 1 comment
Open
1 of 3 tasks

Comments

@laubeltran1
Copy link

Thanks for opening an issue!

Please select the type of issue you're reporting. For questions.

  • Bug
  • Feature Request
  • Question

Problem Report

I implemented the functionality in a modal to adjust the size, for english language it works as expected but for arabic, as it is known to be from right to left, the resizable is lost.

System Info

Node Version: 16.13.1
Browser: Chrome - Firefox
OS: MacOS

@alexandermirzoyan
Copy link

You can just change resizeHandles prop depend on your language. In my case I use only X axis for resizing so I am setting something like this.

axis='x' resizeHandles={language === 'ar' ? ['ne'] : ['w']}

Just play with resizeHandles prop and you will reach to your needed result.

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