Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -316,11 +316,6 @@ |
317 | 317 | } else { |
318 | 318 | $rows = 5; |
319 | 319 | } |
320 | | - if ( array_key_exists( 'cols', $other_args ) ) { |
321 | | - $cols = $other_args['cols']; |
322 | | - } else { |
323 | | - $cols = 80; |
324 | | - } |
325 | 320 | |
326 | 321 | if ( array_key_exists( 'autogrow', $other_args ) ) { |
327 | 322 | $className .= ' autoGrow'; |
— | — | @@ -331,9 +326,15 @@ |
332 | 327 | 'id' => $input_id, |
333 | 328 | 'name' => $input_name, |
334 | 329 | 'rows' => $rows, |
335 | | - 'cols' => $cols, |
336 | 330 | 'class' => $className, |
337 | 331 | ); |
| 332 | + |
| 333 | + if ( array_key_exists( 'cols', $other_args ) ) { |
| 334 | + $textarea_attrs['cols'] = $other_args['cols']; |
| 335 | + } else { |
| 336 | + $textarea_attrs['style'] = "width: 100%"; |
| 337 | + } |
| 338 | + |
338 | 339 | if ( $is_disabled ) { |
339 | 340 | $textarea_attrs['disabled'] = 'disabled'; |
340 | 341 | } |