Skip to content

Commit

Permalink
fix for single item rows, closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jan 17, 2015
1 parent 128c363 commit 64b9a54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions jquery.matchHeight-min.js

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

4 changes: 3 additions & 1 deletion jquery.matchHeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@
maxHeight = 0;

// skip apply to rows with only one item
if (opts.byRow && $row.length <= 1)
if (opts.byRow && $row.length <= 1) {
$row.css(opts.property, '');
return;
}

// iterate the row and find the max height
$row.each(function(){
Expand Down

0 comments on commit 64b9a54

Please sign in to comment.