Skip to content

Instantly share code, notes, and snippets.

@maxmumford
Last active December 29, 2015 18:19
Show Gist options
  • Save maxmumford/7709594 to your computer and use it in GitHub Desktop.
Save maxmumford/7709594 to your computer and use it in GitHub Desktop.
var overlay_fix_start = function() {
$('.overlay_fix').show();
}
var overlay_fix_stop = function() {
$('.overlay_fix').hide();
};
// initiate gridster with the above functions executed each time a drag is started / stopped
$(".gridster ul").gridster({
widget_margins: [10, 10],
widget_base_dimensions: [140, 140],
draggable: {
start: overlay_fix_start,
stop: overlay_fix_stop
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment