set animation after grid initialization

This commit is contained in:
Pavel Reznikov 2014-12-04 20:56:43 -08:00
parent ea7bf03e6b
commit 04fb4ce62f

View file

@ -288,7 +288,6 @@
});
this.container.addClass(this.opts._class);
this.set_animation(this.opts.animate);
this._styles = Utils.create_stylesheet();
this._styles._max = 0;
@ -326,6 +325,8 @@
});
}
this.set_animation(this.opts.animate);
this.placeholder = $('<div class="' + this.opts.placeholder_class + ' ' + this.opts.item_class + '"><div class="placeholder-content" /></div>').hide();
this.container.append(this.placeholder);
this.container.height((this.grid.get_grid_height()) * (this.opts.cell_height + this.opts.vertical_margin) - this.opts.vertical_margin);