diff --git a/colcade.js b/colcade.js index 67261ad..59091df 100644 --- a/colcade.js +++ b/colcade.js @@ -132,6 +132,11 @@ proto.layoutItems = function( items ) { }; proto.layoutItem = function( item ) { + // skip if no column is active + if (!this.activeColumns.length) { + return; + } + // layout item by appending to column var minHeight = Math.min.apply( Math, this.columnHeights ); var index = this.columnHeights.indexOf( minHeight );