Skip to content

Commit

Permalink
fix(gridster): overlapping widget problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianonm authored and vieron committed Oct 26, 2013
1 parent 1b13617 commit 31fd8d6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -1734,10 +1734,14 @@
* @return {Class} Returns the instance of the Gridster Class.
*/
fn.move_widget_down = function($widget, y_units) {
var el_grid_data = $widget.coords().grid;
var actual_row = el_grid_data.row;
var moved = [];
var y_diff = y_units;
var el_grid_data, actual_row, moved, y_diff;

if (y_units <= 0) { return false; }

el_grid_data = $widget.coords().grid;
actual_row = el_grid_data.row;
moved = [];
y_diff = y_units;

if (!$widget) { return false; }

Expand Down

0 comments on commit 31fd8d6

Please sign in to comment.