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

sv-placeholder for sortable lists without common ancestor #139

Open
punkchen opened this issue Aug 13, 2019 · 0 comments
Open

sv-placeholder for sortable lists without common ancestor #139

punkchen opened this issue Aug 13, 2019 · 0 comments

Comments

@punkchen
Copy link

punkchen commented Aug 13, 2019

The sv-placeholder works great for single sortable list. However, when dealing with multiple sortable lists without common ancestor, it's not clear how to apply sv-placeholder such that the size of the partFrom and partTo lists remains unchanged.

Specifically, I have a 2D tile view structured in pseudo HTML below, it's a nested loop, each row is a sortable list. I want to drag a tile from one row to another. When I drag tile 'E' from the second row to the first row, I could get a placeholder at the starting of dragging, but as soon as the tile 'E' is dragged over to the first row, the placeholder disappears, and a new placeholder appears in the first row. What I want during the process is that both rows remain the same size, like auto-resizing.

For example,
A B C D
E F G H

dragging tile 'E', this is happening,
A B C D
"placeholder" F G H
=>
A "placeholder" B C D
F G H

I want ,
A B C D
"placeholder" F G H
=>
A "placeholder" B C
D F G H

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

1 participant