Skip to content

Commit

Permalink
Merge pull request #50 from staabm/patch-3
Browse files Browse the repository at this point in the history
take only visible fieldRows into account when equalizing field heights
  • Loading branch information
kumailht committed Apr 15, 2016
2 parents 88bf68e + e2da545 commit a9a5881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gridforms/gridforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $(function() {

// Make sure that the fields aren't stacked
if (!this.areFieldsStacked()) {
fieldsRows.each(function() {
fieldsRows.filter(":visible").each(function() {
// Get the height of the row (thus the tallest element's height)
var fieldRow = $(this);
var rowHeight = fieldRow.css('height');
Expand Down

0 comments on commit a9a5881

Please sign in to comment.