[rtl resize] In RTL resize, when I try to shrink it, it gets bigger instead

Open
#2,002 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
react, typescript

Research direction

Start by reproducing the RTL resize behavior in the linked CodeSandbox, using public/index.html around line 10,9 in Chrome. Trace the resize path in react-grid-layout and verify that shrinking from either side changes the box in the expected direction; done means the RTL behavior matches normal resize semantics.

Written by the indexing model from the issue text.

Description

bug needs-info
Describe the bug

In the case of rtl, the left and right operations of the resize function are reversed. You can refer to the example provided below.

Your Example Website or App

https://codesandbox.io/p/sandbox/awesome-snow-zf5cv9?file=%2Fpublic%2Findex.html%3A10%2C9

Steps to Reproduce the Bug or Issue
  1. Go to https://codesandbox.io/p/sandbox/awesome-snow-zf5cv9?file=%2Fpublic%2Findex.html%3A10%2C9
  2. Resize the one of box, you can see the issues
Expected behavior

as normal

react-grid-layout library version

react-grid-layout@1.4.4

Operating System Version

macos

Browser

Chrome

Additional context

No response

Screenshots or Videos

No response

Dominant language
TypeScript
Stars
22.4k
Forks
2.7k
Avg merge
6m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-grid-layout

All issues in react-grid-layout/react-grid-layout

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.