|
|
@ -227,9 +227,7 @@ |
|
|
|
this.molequul( 'getMasonryColCount', props ); |
|
|
|
this.molequul( 'getMasonryColCount', props ); |
|
|
|
if ( props.colCount !== prevColCount ) { |
|
|
|
if ( props.colCount !== prevColCount ) { |
|
|
|
// if column count has changed, do a new column cound
|
|
|
|
// if column count has changed, do a new column cound
|
|
|
|
this |
|
|
|
this.molequul( 'reLayout', props ); |
|
|
|
.molequul( 'masonryResetLayoutProps', props ) |
|
|
|
|
|
|
|
.molequul( 'layout', props.atoms.$filtered ); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -294,14 +292,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
clearFloatResize : function( props ) { |
|
|
|
clearFloatResize : function( props ) { |
|
|
|
props.width = this.width(); |
|
|
|
props.width = this.width(); |
|
|
|
return this |
|
|
|
return this.molequul( 'reLayout', props ); |
|
|
|
.molequul( 'clearFloatResetLayoutProps', props ) |
|
|
|
|
|
|
|
.molequul( 'layout', props.atoms.$filtered ); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ====================== General Methods ======================
|
|
|
|
// ====================== General Methods ======================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// used on collection of cards (should be filtered, and sorted before )
|
|
|
|
// used on collection of cards (should be filtered, and sorted before )
|
|
|
|
// accepts cards-to-be-laid-out and colYs to start with
|
|
|
|
// accepts cards-to-be-laid-out and colYs to start with
|
|
|
@ -356,11 +353,18 @@ |
|
|
|
|
|
|
|
|
|
|
|
resize : function() { |
|
|
|
resize : function() { |
|
|
|
var props = this.data('molequul'); |
|
|
|
var props = this.data('molequul'); |
|
|
|
props.initialized = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return this.molequul( props.opts.layoutMode + 'Resize', props ); |
|
|
|
return this.molequul( props.opts.layoutMode + 'Resize', props ); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reLayout : function( props ) { |
|
|
|
|
|
|
|
props = props || this.data('molequul'); |
|
|
|
|
|
|
|
props.initialized = true; |
|
|
|
|
|
|
|
return this |
|
|
|
|
|
|
|
.molequul( props.opts.layoutMode + 'ResetLayoutProps', props ) |
|
|
|
|
|
|
|
.molequul( 'layout', props.atoms.$filtered ); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
append : function() { |
|
|
|
append : function() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|