Timeline for comment body size in hook_form_comment_form_alter
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 1, 2012 at 23:47 | history | edited | Clive♦ | CC BY-SA 3.0 |
added 36 characters in body
|
Jun 1, 2012 at 23:18 | vote | accept | user1248979 | ||
Jun 1, 2012 at 23:15 | comment | added | user1248979 | Here is a shot of the dpm: i.imgur.com/12nwN.png | |
Jun 1, 2012 at 23:15 | comment | added | Clive♦ |
It's probably a CSS issue, if you look in the markup you'll see the cols attribute on the <textarea> element. Try adding .form-textarea-wrapper textarea { width: auto; } to your stylesheet, that'll override the width: 100% set in the system CSS files. If you've got a WYSIWYG editor on the comment body this probably won't work, as they tend to fill the width of their container
|
|
Jun 1, 2012 at 23:09 | comment | added | user1248979 | That doesn't work. comment_body > und > 0 > #cols is not there. #rows is there, but not #cols. #cols is at comment_body > #cols, and it doesn't work | |
Jun 1, 2012 at 23:03 | comment | added | Clive♦ |
It's #cols , not #columns , it should probably be $form['comment_body']['und'][0]['#cols'] = 20;
|
|
Jun 1, 2012 at 23:01 | comment | added | user1248979 | I was looking for the size. That makes sense. I got the rows to work with $form['comment_body']['und'][0]['#rows'] = 10; but the columns I cant get to work. I have tried $form['comment_body']['und'][0]['#columns'][0] = 20; and $form['comment_body']['und'][0]['#columns'] = 20; | |
Jun 1, 2012 at 22:51 | history | answered | Clive♦ | CC BY-SA 3.0 |