Skip to content

Commit

Permalink
Improved logic for textarea scaling support
Browse files Browse the repository at this point in the history
  • Loading branch information
laCour committed Jan 8, 2016
1 parent 38e9e2e commit 735a19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gridforms/gridforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ $(function() {
var rowHeight = fieldRow.css('height');

// Singleton textarea rows should determine their row height
if (fieldRow.children().children("textarea").length === 1) {
return;
}
var rowInputs = fieldRow.children();
var textAreas = rowInputs.children("textarea");
if (rowInputs.length === 1 && textAreas.length === 1) return;

// Set the height for each field in the row...
fieldRow.find(fieldsContainers).css('height', rowHeight);
Expand Down

0 comments on commit 735a19a

Please sign in to comment.