According to the Form API, you control the number of columns in a
textarea with the
#cols attribute. However, setting this seems to have no effect when I use it inside a
$form array (the companion
#rows attribute works as expected).
This may just be a bug (and I understand that bug-reports are off-topic on SE DrupalAnswers). But I have searched the issue queues and haven't found any bug reports about this, which makes me suspect that there is something rather basic that I've misunderstood.
So: What is the correct way to control the number of cols in a textarea?
Environment: Drupal 7 fresh install, Bartik theme with no customization.