-
Notifications
You must be signed in to change notification settings - Fork 42
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
drag plugin does not factor RTL layout #129
Comments
@ronnetzer would you like to take this one? if not i'll do it no problem. |
@shlomiassaf The problem starts with Directionality, the 'value' is being set only once, in instantiation. In my project we're using a library we've created (@e-square/bdir) that exposes a service that extends Directionality with updating the value on dir changes and we provide this service instead of Directionality, I can do here the same but I feel like this should be fixed in Material. Let me know what you think and in any case you can assign those RTL issues to me. Seems like there's an open issue on this |
Maybe i'm missing something. What angular/components#5761 is talking about is supporting changes in the attribute, you're talking about supporting changes in the components themselfs? Anyway, nGrid is not just for material, it happen to be that I only wrote one plugin extension for material and not bootstrap or something native... |
Also, checked again, it's not related to the Directionality, dragging a column and releasing is not working as it should. Also, copy paste plugin is not working as RTL copy paste should. What I suggest is to create a stream + value in the |
What is the expected behavior?
Now with the new RTL support the drag & drop plugin should factor in the RTL direction
For example, when using column resize it will not follow the right resize direction with RTL on...
Or, when dragging it will swap the columns in the wrong order.
In RTL mode it will assume the last column (first from left) is the first, as if it's LTR mode.
What is the current behavior?
Factor in RTL layout when in RTL mode.
What are the steps to reproduce?
Go to https://shlomiassaf.github.io/ngrid/
Toggle RTL to be ON
Go to demo Infinite Scroll Performance
With the mouse drag the accountType column and swap it with the accountId column next to it.
You will see the account column appearing between column of month 5 and month 6.
This is because accountType was at column index 6 and column index 6 is also between the columns month5 & month 6 if you count from the LEFT, but we're on RTL so we should count from the right
The text was updated successfully, but these errors were encountered: