|
|
@ -29,7 +29,7 @@ function layoutModeDefinition( getSize, Outlayer ) { |
|
|
|
'_manageStamp', |
|
|
|
'_manageStamp', |
|
|
|
'_getContainerSize', |
|
|
|
'_getContainerSize', |
|
|
|
'_getElementOffset', |
|
|
|
'_getElementOffset', |
|
|
|
'resize' |
|
|
|
'needsResizeLayout' |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
for ( var i=0, len = facadeMethods.length; i < len; i++ ) { |
|
|
|
for ( var i=0, len = facadeMethods.length; i < len; i++ ) { |
|
|
@ -47,17 +47,13 @@ function layoutModeDefinition( getSize, Outlayer ) { |
|
|
|
// ----- ----- //
|
|
|
|
// ----- ----- //
|
|
|
|
|
|
|
|
|
|
|
|
// for horizontal layout modes, check vertical size
|
|
|
|
// for horizontal layout modes, check vertical size
|
|
|
|
LayoutMode.prototype.resizeVertical = function() { |
|
|
|
LayoutMode.prototype.needsVerticalResizeLayout = function() { |
|
|
|
// don't trigger if size did not change
|
|
|
|
// don't trigger if size did not change
|
|
|
|
var size = getSize( this.isotope.element ); |
|
|
|
var size = getSize( this.isotope.element ); |
|
|
|
// check that this.size and size are there
|
|
|
|
// check that this.size and size are there
|
|
|
|
// IE8 triggers resize on body size change, so they might not be
|
|
|
|
// IE8 triggers resize on body size change, so they might not be
|
|
|
|
var hasSizes = this.isotope.size && size; |
|
|
|
var hasSizes = this.isotope.size && size; |
|
|
|
if ( hasSizes && size.innerHeight === this.isotope.size.innerHeight ) { |
|
|
|
return hasSizes && size.innerHeight !== this.isotope.size.innerHeight; |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.isotope.layout(); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// ----- measurements ----- //
|
|
|
|
// ----- measurements ----- //
|
|
|
|