surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.2k stars 809 forks source link

Comment Question - The size grip remains when the autoGrow option is enabled #6232

Closed JaneSjs closed 1 year ago

JaneSjs commented 1 year ago

Issue: when the Comment question's autoGrow optoin is enabled, the size grip remains available. As a result, customers can resize the visible comment area. Example

https://github.com/surveyjs/survey-library/assets/22372972/ce91c191-525c-4773-9d4e-8c90025e5c01

Expected behavior: the autoGrow setting behaves as the survey.autoGrowComment property. That is, when the autoGrow option is enabled, the size grip is not available and users cannot resize the visible comment area.

https://github.com/surveyjs/survey-library/assets/22372972/57745f81-5591-41a1-b97a-811bf1eaf8e4

RomanTsukanov commented 1 year ago

Comment.autoGrow and survey.autoGrowComment must work identically. To control the resize grip, we can introduce two new properties: Comment.allowResize and survey.allowResizeComment.

In Survey Creator, use the following captions: