H
H
hollanditkzn2017-09-28 10:47:14
Yii
hollanditkzn, 2017-09-28 10:47:14

How to make textarea rows smaller?

I didn’t catch up with textarea a bit when I write something like this in the code

<?= $form->field($commentForm, 'comment')->textarea(['rows' => 1])->label(false) ?>

Then I can’t get this line in one line, but as many as 6 lines.
Here is a screenshot for clarity. 59cca8db3abfc389547069.png
I didn’t catch up with only one thing, how to change it?
Or is it all done with styles?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Kozhin, 2017-09-28
@hollanditkzn

In one line, you can also ...->textInput($options)...
But in fact there is no error, textarea in one line is written correctly for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question