fix remove_widget

This commit is contained in:
Pavel Reznikov 2014-12-01 17:50:53 -08:00
parent d99f15fca1
commit eaf63f67b3
3 changed files with 8 additions and 2 deletions

View file

@ -261,6 +261,11 @@ and HTML:
Changes
=======
#### v0.2.1 (Current development version)
- fix `remove_widget` (#16)
#### v0.2.0 (2014-11-30)
- add `height` option

File diff suppressed because one or more lines are too long

View file

@ -490,7 +490,8 @@
};
GridStack.prototype.remove_widget = function (el) {
var node = $(el).data('_gridstack_node');
el = $(el);
var node = el.data('_gridstack_node');
this.grid.remove_node(node);
el.remove();
this._update_container_height();