broadcast resizestop to nested grids "all the way down"
This commit is contained in:
parent
1b3a0cbf89
commit
798c5c429f
1 changed files with 6 additions and 4 deletions
|
|
@ -678,10 +678,12 @@
|
|||
|
||||
self.grid.end_update();
|
||||
|
||||
var nested_grid = o.find('.grid-stack');
|
||||
if (nested_grid.length && event.type == 'resizestop') {
|
||||
nested_grid.data('gridstack').on_resize_handler();
|
||||
nested_grid.find('.grid-stack-item').trigger('resizestop');
|
||||
var nested_grids = o.find('.grid-stack');
|
||||
if (nested_grids.length && event.type == 'resizestop') {
|
||||
nested_grids.each(function(index, el) {
|
||||
$(el).data('gridstack').on_resize_handler();
|
||||
});
|
||||
o.find('.grid-stack-item').trigger('resizestop');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue