- Apply fix from #22 to vertical positioning (dfc64916)
- convert from JQury to DOM (4936ef82)
- fn.generate_stylesheet: only return new stylesheet if colWidth and this.$wrapper.width() are > 0 (f513793a)
- gridster: Add additiona error checking on widgets removal (2b0f9963)
- Add Ruby on Rails support
- bug fixes for positions and overlap
- dist modified to support webpack deployements
- new 'sticky' layout option which allows widgets to be places absolutely into a position on the grid.
- gridster:
- responsive width now resizes based off wrapper not window (e69c3e8f)
- ensure coords instances are destroyed on widgets (576b5ae3)
resize_widget
also accepts HTMLElements (cda560f4)- changed "instanceof jQuery" to "instanceof $" (c6226306)
- wrong addition solved in add_faux_rows/cols by adding parseInt (d9471752, closes #426, #425)
- preventing gridster from adding extra resize handles (9d077da6)
- destroy resize_api (b1629326, closes #473)
- ensure widget dimensions and coords are always ints (595a94f1)
- draggable: autoscrolling (d3f25f3f)
- gridster:
- gridster.css: remove possible default pading (2002c455)
- gridster: fixed bugs in centering_widgets (widgets were getting smushed when being resized (86053f8b)
- gridster:
- added ability to center widgets in grid
- gridster:
- fixing resize limits when in fixed width mode feature(gridster): added fix_to_co (6bb47dc1)
- gridster: forcing height of gridster container to auto when in collapsed mode (749f37a5)
- gridster:
- gridster: changed the way widgets were getting positioned so that margins are actually the (a3913043)
- gridster: make grid responsive (a3913043)
- draggable: namespace events with unique ids (79aff38c)
- gridster: fire
positionschanged
when widget orig position changes (9926ceff)
- gridster:
- make gridster AMD compatible (589d7fd5)
- gridster: move widget up when added if there is space available (8ec307b6)
- draggable:
- gridster:
- draggable:
- collision: overlapping region as a config option (720d487e)
- coords:
- draggable: keep container position prop if different than static (04868a38)
- gridster: destroy element's data and optionally remove from DOM (dc09f191)
- autogrow: refining autogrow_cols behavior and grid width issues (835c2df8)
- resize.stop: Call resize.stop at the latest possible moment (e21f63a0)
- draggable: Add toggle draggable method. (073fdc40)
- resize: add start/stop/resize event triggers (7ca8deec)
- generated-styles: cleaning cached serializations properly (f8b04f29)
- recalculate grid width when adding widgets (47745978)
- add resize.min_size option to default config object (5672edb0)
- gridster:
- licenses: add required copyright message for underscore (b563c094)
- readme: link title jsfiddle -> jsbin, edit 5) of process steps (0641aa89)
- draggable:
- gridster: increase grid width when dragging or resizing (37c4e943)
- resize: add option to set min_size of a widget (ff511872)
- draggable:
- gridster: increase grid width when dragging or resizing (b61df653)
- resize: Add start/stop/resize callbacks (d4ec7140)
- draggable:
- gridster: drag-and-drop widget resizing (e1924053)
- utils: add delay helper to utils (faa6c5db)
Changelog 2013-04-3
Fork now handles standard behavior properly with swap allowing larger widgets to shift down.
Changelog 2013-04-2
Added Demo to Repository.
Changelog 2013-02-27
Added "Static widget support" Static Items default to the "static" class.
You can customize this class by using the code below:
$.gridster({
static_class: 'custom_class',
draggable: {
items: ".gs_w:not(.custom_class)"
}
});
I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too. This version is much more reliable in swapping space with widgets.
There are also new options for Maximum Rows and Maximum Columns:
$.gridster({
max_rows: map_rows,
max_cols: map_cols,
shift_larger_widgets_down: false
});
Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.
Changelog 11-26-2012
Reworked swapping functionality to better handle large to small widget handling.
Widgets of smaller or equal size to the dragged widget (player) will swap places with the original widget.
This causes tiles to swap left and right as well as up and down.
By default smaller players will shift larger widgets down.
I have added an option to prevent this behavior:
$.gridster({
shift_larger_widgets_down: false
});
By setting shift_larger_widgets_down to false, smaller widgets will not displace larger ones.