Skip to content

Commit f72ab91

Browse files
committed
skip apply to rows with only one item
1 parent cae21cd commit f72ab91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery.matchHeight.js

+4
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
var $row = $(row),
160160
maxHeight = 0;
161161

162+
// skip apply to rows with only one item
163+
if (byRow && $row.length <= 1)
164+
return;
165+
162166
// ensure elements are visible to prevent 0 height
163167
var hiddenParents = $row.parents().add($row).filter(':hidden');
164168
hiddenParents.css({ 'display': 'block' });

0 commit comments

Comments
 (0)