@ -1,5 +1,5 @@
/ * *
/ * *
* Isotope v1 . 5.13
* Isotope v1 . 5.14
* An exquisite jQuery plugin for magical layouts
* An exquisite jQuery plugin for magical layouts
* http : //isotope.metafizzy.co
* http : //isotope.metafizzy.co
*
*
@ -322,7 +322,7 @@
} ;
} ;
// styles of container element we want to keep track of
// styles of container element we want to keep track of
var isoContainerStyles = [ 'overflow' , 'position' , ' width' , 'height' ] ;
var isoContainerStyles = [ 'width' , 'height' ] ;
var $window = $ ( window ) ;
var $window = $ ( window ) ;
@ -334,6 +334,10 @@
hiddenClass : 'isotope-hidden' ,
hiddenClass : 'isotope-hidden' ,
hiddenStyle : { opacity : 0 , scale : 0.001 } ,
hiddenStyle : { opacity : 0 , scale : 0.001 } ,
visibleStyle : { opacity : 1 , scale : 1 } ,
visibleStyle : { opacity : 1 , scale : 1 } ,
containerStyle : {
position : 'relative' ,
overflow : 'hidden'
} ,
animationEngine : 'best-available' ,
animationEngine : 'best-available' ,
animationOptions : {
animationOptions : {
queue : false ,
queue : false ,
@ -359,15 +363,17 @@
// get original styles in case we re-apply them in .destroy()
// get original styles in case we re-apply them in .destroy()
var elemStyle = this . element [ 0 ] . style ;
var elemStyle = this . element [ 0 ] . style ;
this . originalStyle = { } ;
this . originalStyle = { } ;
for ( var i = 0 , len = isoContainerStyles . length ; i < len ; i ++ ) {
// keep track of container styles
var prop = isoContainerStyles [ i ] ;
var containerStyles = isoContainerStyles . slice ( 0 ) ;
for ( var prop in this . options . containerStyle ) {
containerStyles . push ( prop ) ;
}
for ( var i = 0 , len = containerStyles . length ; i < len ; i ++ ) {
prop = containerStyles [ i ] ;
this . originalStyle [ prop ] = elemStyle [ prop ] || '' ;
this . originalStyle [ prop ] = elemStyle [ prop ] || '' ;
}
}
// apply container style from options
this . element . css ( {
this . element . css ( this . options . containerStyle ) ;
overflow : 'hidden' ,
position : 'relative'
} ) ;
this . _updateAnimationEngine ( ) ;
this . _updateAnimationEngine ( ) ;
this . _updateUsingTransforms ( ) ;
this . _updateUsingTransforms ( ) ;
@ -848,8 +854,7 @@
// re-apply saved container styles
// re-apply saved container styles
var elemStyle = this . element [ 0 ] . style ;
var elemStyle = this . element [ 0 ] . style ;
for ( var i = 0 , len = isoContainerStyles . length ; i < len ; i ++ ) {
for ( var prop in this . originalStyle ) {
var prop = isoContainerStyles [ i ] ;
elemStyle [ prop ] = this . originalStyle [ prop ] ;
elemStyle [ prop ] = this . originalStyle [ prop ] ;
}
}