14

is there any way to make Gridster.js tile(s) stick, that is not move up vertically to fill empty space. Kind of like the way a layout program with snap-to-grid turned on works...

user265505
  • 409
  • 6
  • 21

4 Answers4

4

Use this fork https://github.com/dsmorse/gridster.js with

shift_widgets_up: false

option.

See demo : http://dsmorse.github.io/gridster.js/demos/sticky-postion.html

Anatol Bivol
  • 890
  • 7
  • 20
0

Have you tried packery? http://packery.metafizzy.co/ This library has many drag and drop features.

kimomat
  • 2,211
  • 23
  • 37
0

You may also be interested in the following prototype from my team: https://github.com/ibmjstart/gridplumb

Specifically, the modifications to grister can be found at https://github.com/ibmjstart/gridplumb/blob/master/src/extend-gridster.js

lmsurprenant
  • 1,723
  • 2
  • 14
  • 28
0

My answer is not directly linked to gridster but to one of its fork : gridstack. I post this answer as I found this topic while searching for this functionality in gridstack.

So in gridstack solution is to put this property in grid options :

float:true
Marc_Alx
  • 1,285
  • 17
  • 25