Commit a5ef8427 authored by Pavel Reznikov's avatar Pavel Reznikov
Browse files

update container height after add/remove

parent 37ee9883
......@@ -283,12 +283,14 @@
if (typeof height != 'undefined') el.attr('data-gs-height', height);
this.container.append(el);
this._prepare_element(el);
this._update_container_height();
};
GridStack.prototype.remove_widget = function (el) {
var node = $(el).data('_gridstack_node');
this.grid.remove_node(node);
el.remove();
this._update_container_height();
};
scope.GridStackUI = GridStack;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment