gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Cannot move widget horizontally (Allow horizontal swapping without creating new rows)

Open amrbahaa opened this issue 11 years ago • 50 comments

for example : i have a grid with fixed 4 columns and four rows When i was trying to move the widget Horizontally and no place for the other widgets to slide up or down , the end result is you will not be able to move that widget unless there is enough space for other widgets to slide up/down.

is there any way to make the other widgets to slide left/right? so i can move any widget when i have a fixed width and height grid with full capacity widgets.

amrbahaa avatar May 24 '15 13:05 amrbahaa

@kevinlandsberg if you drag 1 over 9 in ^^ it reflows the list, which may or may not be what you want. I have it swap 1 <-> 9 instantly (in my swapping branch). Or course the example they give is VERY simple (all same size and full flowing grid). Gridstack can handle any size combination and empty space with items floating, which is a much harder problem...

Anyway with my swapping code it behaves much better IMO, but the edge cases are hard to fix. I need to find time to finish it up.

And donation are welcomed as always since I'm not getting any help on these...

adumesny avatar Jan 29 '21 16:01 adumesny

I will Donate some Money if this Feature Works...😂

kevinlandsberg avatar Jan 29 '21 17:01 kevinlandsberg

yeah right... I already spent >20 hours on this and while I have it mostly working, there is still a lot of testing to make sure I didn't break something else. Already got burned fixing 3 issues for someone else and not getting even a thank you after 3 weeks. I've only gotten 1 donation for #1094 which is related and yet multiple people say they would donate...

guess what ? it take a LOT of work to create this lib and I spent countless weekends and holidays on this. Because of that I'm actually thinking of turning my work into a licensed version. then people will actually have to pay to use it.

adumesny avatar Feb 01 '21 00:02 adumesny

@adumesny would you consider setting this up on https://opencollective.com ? It's much more transparent, and it would also get you exposure. I need to ask my team if they think your project works for us. And if the answer to both those questions is yes then I will definitely donate to the project. Cheers!

dahacouk avatar Feb 01 '21 08:02 dahacouk

@dahacouk would have to read more, but I'm not trying to open a charity per say... thanks.

adumesny avatar Feb 01 '21 15:02 adumesny

and donations are pouring in!!!! (I wish) 5.5y years in the making, in the next release v3.4 or v4.0

default float:false (top gravity)

https://user-images.githubusercontent.com/3496166/107982087-4340a200-6f78-11eb-8b39-5a9b448a610d.mp4

float:true case

https://user-images.githubusercontent.com/3496166/107982494-045f1c00-6f79-11eb-9d84-14876431287a.mp4

maxRow:3 for full grid, even if float=true

https://user-images.githubusercontent.com/3496166/107982687-5c961e00-6f79-11eb-98fd-a114196b3381.mp4

adumesny avatar Feb 15 '21 18:02 adumesny

@dahacouk would have to read more, but I'm not trying to open a charity per say... thanks.

I hear you. You don't have to set up a charity, by the way. In the main, it's about being transparent and open. It's working very well for a lot of open source projects (big and small).

Great demos by the way.

dahacouk avatar Feb 15 '21 18:02 dahacouk

Woooooow thank you! Release it and i will donate! Cheers!!!

kevinlandsberg avatar Feb 15 '21 18:02 kevinlandsberg

@dahacouk I take it your team isn't using it then... v4 has been released. not sure why I need to be transparent about the peanut support I've been getting so far...

adumesny avatar Mar 27 '21 16:03 adumesny

@dahacouk and others, I've added github sponsor so you can see donations and hopefully make it easier to do...

adumesny avatar Oct 01 '23 18:10 adumesny