You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i'm using this project for one of my projects which is in Farsi and RTL so i need masonry in right to left direction.
i've read a little bit of Masonry source code and figured out it's using position absolute + some top and left values to adjust elements, i was able to achieve this by switching left to right in
i'm not sure that this is a silly solution or it's okay, then if it is or you have better solution, i can make a PR for this for an additional prop called isRtl ❤️
The text was updated successfully, but these errors were encountered:
I agree with you about naming, just wanted to demonstrate the main idea.
if we only call it direction the user might misunderstand which direction do we mean (direction in the row or column).
what if we call it rowDirection instead which defaults to ltr and can be rtl too.
Hello,
i'm using this project for one of my projects which is in Farsi and RTL so i need masonry in right to left direction.
i've read a little bit of Masonry source code and figured out it's using position absolute + some top and left values to adjust elements, i was able to achieve this by switching left to right in
react-virtualized/source/Masonry/Masonry.js
Line 396 in af90cfe
screenshot:
i'm not sure that this is a silly solution or it's okay, then if it is or you have better solution, i can make a PR for this for an additional prop called isRtl ❤️
The text was updated successfully, but these errors were encountered: