Adapt the Size of the Text Area

If the size of the widget should be fixed, specify it using the height and width options.

JavaScript
$(function() {
    $("#textAreaContainer").dxTextArea({
        height: 200,
        width: 300
    });
});

Alternatively, the widget's height can adapt to the widget's contents. In this case, instead of specifying the height option, you need to set the autoResizeEnabled option to true. To specify the minimum and maximum height that the adapted TextArea can occupy, set the minHeight and maxHeight options.

JavaScript
$(function() {
    $("#textAreaContainer").dxTextArea({
        autoResizeEnabled: true,
        minHeight: 100,
        maxHeight: 200
    });
});
See Also