set animation after grid initialization
This commit is contained in:
parent
ea7bf03e6b
commit
04fb4ce62f
|
@ -288,7 +288,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
this.container.addClass(this.opts._class);
|
this.container.addClass(this.opts._class);
|
||||||
this.set_animation(this.opts.animate);
|
|
||||||
this._styles = Utils.create_stylesheet();
|
this._styles = Utils.create_stylesheet();
|
||||||
this._styles._max = 0;
|
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.placeholder = $('<div class="' + this.opts.placeholder_class + ' ' + this.opts.item_class + '"><div class="placeholder-content" /></div>').hide();
|
||||||
this.container.append(this.placeholder);
|
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);
|
this.container.height((this.grid.get_grid_height()) * (this.opts.cell_height + this.opts.vertical_margin) - this.opts.vertical_margin);
|
||||||
|
|
Loading…
Reference in a new issue