Skip to content

Commit

Permalink
Support vertical textarea scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
laCour committed Jan 6, 2016
1 parent 58e97a2 commit 38e9e2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gridforms/gridforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ $(function() {
// Get the height of the row (thus the tallest element's height)
var fieldRow = $(this);
var rowHeight = fieldRow.css('height');

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

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

0 comments on commit 38e9e2e

Please sign in to comment.