mostr / angular-ui-multi-sortable

Angular directive for using jQuery multi-sortable
MIT License
62 stars 13 forks source link

multi sortable in horizontal mode #13

Open eransc opened 10 years ago

eransc commented 10 years ago

I'm building a widgets dashboard app where the dragging of the box is horizontal inside each row or between them

The dragging placeholders is based on row and not on column What would you reccomend ?

mostr commented 10 years ago

Isn't styling containers as a rows (horizontal) enough? I mean you don't need to have columns, you can freely define your containers so they can be seen as rows by user too.

eransc commented 10 years ago

styling is no issue - please look at image m-sortable1.png

but when trying to drag items in the same row , i.e: dragging item2.2 on item2.1, item2.1 is pushed down and the placeholder is row based and not column based.

Any ideas?

m-sortable1 m-sortable2

mostr commented 10 years ago

I guess it's jquery related stuff, not Angular. For now I have no idea how to make it working. You need to dive deeper into jquery sortable I'm afraid.

On Wed, Dec 18, 2013 at 8:37 AM, cgweb notifications@github.com wrote:

styling is no issue - please look at image m-sortable1.png

but when trying to drag items in the same row , i.e: dragging item2.2 on item2.1, item2.1 is pushed down and the placeholder is row based and not column based.

Any ideas?

[image: m-sortable1]https://f.cloud.github.com/assets/816700/1771428/dde28930-67b6-11e3-91a3-f5d97fbc36df.PNG [image: m-sortable2]https://f.cloud.github.com/assets/816700/1771429/e46f418a-67b6-11e3-8953-e340d3d3c319.PNG

Reply to this email directly or view it on GitHubhttps://github.com/mostr/angular-ui-multi-sortable/issues/13#issuecomment-30822325 .

Micha³ Ostruszka http://michalostruszka.pl