Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04fb4ce

Browse files
committed
set animation after grid initialization
1 parent ea7bf03 commit 04fb4ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gridstack.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@
288288
});
289289

290290
this.container.addClass(this.opts._class);
291-
this.set_animation(this.opts.animate);
292291
this._styles = Utils.create_stylesheet();
293292
this._styles._max = 0;
294293

@@ -326,6 +325,8 @@
326325
});
327326
}
328327

328+
this.set_animation(this.opts.animate);
329+
329330
this.placeholder = $('<div class="' + this.opts.placeholder_class + ' ' + this.opts.item_class + '"><div class="placeholder-content" /></div>').hide();
330331
this.container.append(this.placeholder);
331332
this.container.height((this.grid.get_grid_height()) * (this.opts.cell_height + this.opts.vertical_margin) - this.opts.vertical_margin);

0 commit comments

Comments
 (0)