Skip to content

Commit 64b9a54

Browse files
committed
fix for single item rows, closes #48
1 parent 128c363 commit 64b9a54

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

jquery.matchHeight-min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.matchHeight.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@
199199
maxHeight = 0;
200200

201201
// skip apply to rows with only one item
202-
if (opts.byRow && $row.length <= 1)
202+
if (opts.byRow && $row.length <= 1) {
203+
$row.css(opts.property, '');
203204
return;
205+
}
204206

205207
// iterate the row and find the max height
206208
$row.each(function(){

0 commit comments

Comments
 (0)