Skip to content

Commit

Permalink
src : don't use gutterWidth in colSpan measurement
Browse files Browse the repository at this point in the history
fixes desandro#197

v2.1.05
  • Loading branch information
desandro committed Apr 30, 2012
1 parent f276fd7 commit ea57e8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions jquery.masonry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* jQuery Masonry v2.1.04
* jQuery Masonry v2.1.05
* A dynamic layout plugin for jQuery
* The flip-side of CSS Floats
* http://masonry.desandro.com
Expand Down Expand Up @@ -243,8 +243,7 @@
colSpan, groupCount, groupY, groupColY, j;

//how many columns does this brick span
colSpan = Math.ceil( $brick.outerWidth(true) /
( this.columnWidth + this.options.gutterWidth ) );
colSpan = Math.ceil( $brick.outerWidth(true) / this.columnWidth );
colSpan = Math.min( colSpan, this.cols );

if ( colSpan === 1 ) {
Expand Down
4 changes: 2 additions & 2 deletions jquery.masonry.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea57e8c

Please sign in to comment.