Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextAreaInput.php |
— | — | @@ -58,6 +58,12 @@ |
59 | 59 | |
60 | 60 | if ( array_key_exists( 'cols', $other_args ) ) { |
61 | 61 | $textarea_attrs['cols'] = $other_args['cols']; |
| 62 | + } elseif ( array_key_exists( 'autogrow', $other_args ) ) { |
| 63 | + // If 'autogrow' has been set, automatically set |
| 64 | + // the number of columns - otherwise, the Javascript |
| 65 | + // won't be able to know how many characters there |
| 66 | + // are per line, and thus won't work. |
| 67 | + $textarea_attrs['cols'] = 90; |
62 | 68 | } else { |
63 | 69 | $textarea_attrs['style'] = 'width: 100%'; |
64 | 70 | } |