rmq icon indicating copy to clipboard operation
rmq copied to clipboard

distribute(:flow)

Open markrickert opened this issue 10 years ago • 5 comments

It would be great to be able to append a bunch of views and then call something like:

.distribute(:flow, options = {
  padding: 5,
  center_last: true
})

to turn the views into a flow based on the width of the parent view:

  X  X  X
  X  X  X
     X

or without the center_last

  X  X  X
  X  X  X
  X

markrickert avatar Dec 15 '14 19:12 markrickert

Yes, that was an intention of distribute, to be able to do both horizontal and vertical at the same time. I like this idea

twerth avatar Dec 15 '14 20:12 twerth

Yes please!

This is basically a simple version of Collection View (which is never very simple).

vaughankg avatar Dec 15 '14 20:12 vaughankg

I already have 85% of the code written to do this so it shouldn't be too hard to integrate into RMQ when i get some time :)

markrickert avatar Dec 15 '14 20:12 markrickert

I'm next to him and can corroborate.

GantMan avatar Dec 15 '14 20:12 GantMan

Nice. It seems like you have this covered but I would also be happy to help.

vaughankg avatar Dec 15 '14 20:12 vaughankg