[FIX] survey: prevent overlapping while resizing the textarea
Steps to reproduce: - Create a survey and enable all questions in 1 page - Add questions. (Minimum 1 Multiple Lines Text Box) - Test the survey - Fill the text area with a certain amount of data vertically - Now, hold the icon to resize the text area block - It's overlapping with other questions. Issue: Fixed height:1px is applied to Parent div. Technical Reason: With this commit (https://github.com/odoo/odoo/commit/eaacaf122dff62adcdf885f0ffdcb4a506bded27) the height is applied to the parent div and textarea which is the same for the backend(title of the survey) and frontend. Now backend needs to apply this height to the parent and text area because it has to show all data in the text area but, in the frontend, if we change the height of the textarea then while pressing enter the textarea block increases, and this should not happen. Solution: So, applying the h-auto class to the parent div of textarea now, the questions did not overlap with each other. Task-3707415 closes odoo/odoo#152182 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -361,7 +361,7 @@
|
||||
</template>
|
||||
|
||||
<template id="question_text_box" name="Question: free text box">
|
||||
<div class="o_survey_comment_container p-0">
|
||||
<div class="o_survey_comment_container h-auto p-0">
|
||||
<textarea class="form-control o_survey_question_text_box bg-transparent text-dark rounded-0 p-0" rows="3"
|
||||
t-att-name="question.id" t-att-placeholder="question.question_placeholder"
|
||||
t-att-data-question-type="question.question_type"><t t-if="answer_lines" t-esc="answer_lines[0].value_text_box or None"/></textarea>
|
||||
|
||||
Reference in New Issue
Block a user