AshesOfOwls / jquery.shapeshift

A dynamic grid system with drag and drop functionality.
http://ashesofowls.github.com/jquery.shapeshift/
MIT License
1.67k stars 311 forks source link

Makeshift vertical alignment #91

Open i-need-help opened 10 years ago

i-need-help commented 10 years ago

Hello, Thanks for the great plugin, it is the best solution I have found for my layout. I recently commented on this issue: https://github.com/McPants/jquery.shapeshift/issues/80

I have made some modifications to the code in order to implement vertical flow of items; please have a look. I realized after my modifications that I made these changes to the master branch instead of the 3.0, so if you like I can do that, although I am sure you will be able to better optimize than me. I also don't understand the plugin well enough so please suggest improvements as you wish (ex: to isolate this behavior into an option).

Here are a few screenshots to demonstrate the behavior. Note that in some cases (for example the 3 column layout that the third panel went to the first column even though it is better fit in terms of room in the second column -- I do not know how to fix this, so suggestions are welcome)

4 columns: 4-col 3 columns: 3-col 2 columns: 2-col

Thanks again for a fantastic plugin