I'm struggling with Webform textarea. Drupal 6.6, webform version 2.3.

1. resize handle: The usual code (see http://drupal.org/node/68684) is not working for ONLY this module, it disables core forms at the same time. The whole drupal core editable page textareas are vanished.
2. IE7 browser does act logical, but latest versions of FF/Opera have no wrap at the end, so all text is going on and on at the same line.
3. Safari more weird, yes with wrap, but with another resize handle in the right bottom corner.

Is there anyone that has a working solution for those three problems? Have no hairs left.

Comments

quicksketch’s picture

Component: Documentation » Code
Category: feature » support

Which code did you use exactly? There are a few suggestions in that thread. I suspect your problems with wrapping are caused by CSS in your theme. Try switching to Garland and see if it behaves correctly. The extra resize handle in Safari is added by Safari itself to all textareas. You can try the suggestions in #164793: Disable the resizable textarea grip in Safari 3? to prevent Safari from adding this handle.

pebosi’s picture

i just added a patch to disable resizing of textareas here: #343172: Disable textarea resizing

regards

daddydo’s picture

1. I've implemented in template.php file this code:

function phptemplate_textarea($element) 
{
$element['#resizable'] = false ;
return theme_textarea($element) ;
} 

which took the resize handle away and removed all the textarea of the admin section!
2. FF/Opera do not respond to text-wrap or word-wrap (CSS level3).
3. Thanks to pointing me to the "safari" solutions, this point is solved.

What do you suggest with respect to the resize handle? And what CSS should I add to get the line breaks working (2)?
Pebosi comes with a patch (thank you!). That feature will make your module more flexible. It will give us a EASY way to disable that handle, which is imho completly needless, as long as there is a vertical scrollbar AND it intervenes with many layouts!

UPDATE.
FF/Opera are handling input on one line without whitespace as "pushed" text that is not wrapped automatically, so the horizontal scrollbar appears. As soon as there is a white space in the text (usually it is) than the wrap is functioning. Maybe logic.

quicksketch’s picture

Status: Active » Closed (fixed)