There is such a block of code in View:

<div class="form-group" style="padding-top: 25px"> <label class="col-sm-2 control-label">Discription:</label> <div class="col-sm-10"> @Html.EditorFor(model => model.Event.Discription, new { htmlAttributes = new { @class = "form-control", placeholder = "Enter discription.." } }) </div> </div> 

This field is for entering a description of the product, that is, it must be large. Adding style='height: 100px' leads to an increase in the window height, but the text does not jump down to the end, but continues to go beyond.

    1 answer 1

     <div class="form-group"> <label class="col-sm-2 control-label">Discription:</label> <div class="col-sm-10"> @Html.TextAreaFor(model => model.Event.Discription, new { htmlAttributes = new { @class = "form-control", rows="5", placeholder = "Enter discription.." } }) </div> </div> 
    • Yes, it helped, thanks, but the bootstrap styles are gone. Maybe you know how to fix it? - a.tarasevich
    • And it is small by default, how to increase its size? - a.tarasevich
    • removed the style, added the attribute rows = "5" to increase the size - Ruslan_K
    • it didn't help .. - a.tarasevich
    • That's how it increased: @ Html.TextAreaFor (model => model.Event.Discription, 6, 40, new {htmlAttributes = new {@class = "form-control", placeholder = "Enter discription .."}}) - a .tarasevich