From d0164d834bb18f37f15a129e911f7d8e1c54b7c3 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 20 Mar 2019 10:08:44 +0000 Subject: [IMP] web,account: editable list: no more position absolute Before this rev., widgets were absolutely positioned in table cells. This cause an undesired effect with text fields, as their textarea overflowed and overlapped the next lines. With this rev., wigdets are now statically positioned, and the cells height and width don't change when switching a row to edit mode. Part of task 1915702 --- addons/web/static/src/js/core/dom.js | 2 +- addons/web/static/src/js/fields/basic_fields.js | 14 ++- addons/web/static/src/js/fields/field_registry.js | 1 + .../src/js/views/list/list_editable_renderer.js | 9 +- addons/web/static/src/scss/list_view.scss | 140 ++++++++------------- 5 files changed, 74 insertions(+), 92 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index e618b644eaa..81211788246 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -102,7 +102,7 @@ var dom = { } options = options || {}; - minHeight = (options && options.min_height) || 50; + minHeight = 'min_height' in options ? options.min_height : 50; $fixedTextarea = $('