From 1d531b0d2f663604d997b2589a1e10cf304ec582 Mon Sep 17 00:00:00 2001 From: Naman Shah Date: Wed, 31 Jan 2024 14:44:22 +0530 Subject: [PATCH] [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) --- addons/survey/views/survey_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 3a9c8094898..50027e1b882 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -361,7 +361,7 @@