diff --git a/demo/load.js b/demo/load.js index 0465bfd..0a466e2 100644 --- a/demo/load.js +++ b/demo/load.js @@ -31,7 +31,7 @@ var DemoGrid = { if (size) { this.currentSize = size; } - $('#grid').gridList('reflow'); + $('#grid').gridList('resize', this.currentSize); }, flashItems: function(items) { // Hack to flash changed items visually @@ -47,7 +47,7 @@ var DemoGrid = { }; $(window).resize(function() { - DemoGrid.resize(); + $('#grid').gridList('reflow'); }); $(function() {