Browse Source

src : add verticalList layout

pull/14/head
David DeSandro 14 years ago
parent
commit
3616cfe1d9
  1. 33
      src/jquery.isotope.js

33
src/jquery.isotope.js

@ -666,6 +666,39 @@
}
});
// ====================== verticalList ======================
$.extend( $.Isotope.prototype, {
_verticalListReset : function() {
this.verticalList = {
y : 0
};
return this;
},
_verticalListLayout : function( $elems ) {
var instance = this;
$elems.each( function( i ){
var $this = $(this),
y = instance.verticalList.y + instance.posTop;
instance._pushPosition( $this, instance.posLeft, y );
instance.verticalList.y += $this.outerHeight(true)
});
return this;
},
_verticalListGetContainerSize : function() {
return { height : this.verticalList.y + this.posTop };
},
_verticalListResize : function() {
this.reLayout();
return this;
}
});
// ====================== masonryHorizontal ======================

Loading…
Cancel
Save