From d99e80f92a6f8d940958c6bdb652b2ce4e1deea4 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Fri, 20 Sep 2019 12:00:06 +0000 Subject: [FIX] web: column resize trying to freeze the list Before this commit, resizing a column would cause the list to develop a mind of its own and to grow/shrink random columns according to its own will. Now, resizing a column does not "freeze" the list anymore and simply gives a static width to the resized column. --- addons/web/static/src/js/views/list/list_editable_renderer.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/views/list/list_editable_renderer.js b/addons/web/static/src/js/views/list/list_editable_renderer.js index eb64aebf855..a134faccc81 100644 --- a/addons/web/static/src/js/views/list/list_editable_renderer.js +++ b/addons/web/static/src/js/views/list/list_editable_renderer.js @@ -1534,8 +1534,6 @@ ListRenderer.include({ const table = this.el.getElementsByTagName('table')[0]; const th = ev.target.closest('th'); - // Freeze the whole table width - this._freezeColumnWidths(); table.style.width = `${table.offsetWidth}px`; const thPosition = [...th.parentNode.children].indexOf(th); const resizingColumnElements = [...table.getElementsByTagName('tr')] -- cgit v1.2.3