react-resizable icon indicating copy to clipboard operation
react-resizable copied to clipboard

Add RTL Support

Open Roshdy opened this issue 6 years ago • 4 comments

Thanks for opening an issue!

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

  • [ ] Bug
  • [- ] Feature Request
  • [ ] Question

Problem Report

RTL direction is not supported

Roshdy avatar Feb 07 '19 13:02 Roshdy

How does RTL impact dragging? Is it that you'd like the drag handle to appear on the bottom-left corner? If so, this PR may help: https://github.com/STRML/react-resizable/pull/101

RoccoC avatar May 07 '19 01:05 RoccoC

In RTL:

  1. resizing loses its smoothness which gets worse over time as you keep dragging the handler left and right.
  2. mouse pointer falls behind or ahead of resize handler.

iding-ir avatar Jan 13 '20 09:01 iding-ir

hello @xcqwan and @RoccoC , I hope you all doing great. when i'm using this in an rtl ant design table it works in opposite direction. can you please tell me if i'm doing something wrong or there is a problem? it doesn't matter that where is the cursor in rtl when you drag to right the column's width must decreased but it does the ltr thing and increse width of the column thanks in advance. rtl-problem

omidazm94 avatar Jul 08 '21 06:07 omidazm94

they handle it in #22659 but its not smooth like ltr version <Resizable ++resizeHandles={['w']}

omidazm94 avatar Jul 08 '21 06:07 omidazm94