React-grid-layout: how can I use both horizontal and vertical compacting

Created on 30 Jun 2017  路  4Comments  路  Source: STRML/react-grid-layout

img1
img2

Thanks for submitting an issue to RGL!

Please mark the type of this issue:

  • [ ] Bug
  • [ ] Feature Request
  • [ ] Question

If you have a question or bug report, please use the WebpackBin Template
to demonstrate. It is much easier for us to help you if you do.

stale

All 4 comments

Please give the solution fast.

I'd like to explain the behaviour that I'm after, as I think it's the same as OP.

Screen recording

In the example above, I would like for the blue and green squares to swap places. If there are three items, I would like them to only be able to move between those 3 positions, not the bottom right. I'd also not want them to be able to move to a new row, under the blue.

After reading the docs and checking out the demos, it looks like this isn't currently possible? Apologies if I've overlooked something.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days

Maybe this can help to achieve the required behaviour
https://github.com/STRML/react-grid-layout/issues/1100#issuecomment-583741129

Was this page helpful?
0 / 5 - 0 ratings