Skip to content

Commit

Permalink
Merge pull request #44 from laCour/patch-1
Browse files Browse the repository at this point in the history
Support vertical textarea scaling
  • Loading branch information
kumailht committed Jan 15, 2016
2 parents 58e97a2 + 735a19a commit 88bf68e
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
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 88bf68e

Please sign in to comment.