diff options
| author | Julien Mougenot <jum@odoo.com> | 2019-09-20 12:00:06 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-09-25 06:16:54 +0000 |
| commit | d99e80f92a6f8d940958c6bdb652b2ce4e1deea4 (patch) | |
| tree | 1b9b90f91a9d08f588ec248972e22b9af4c2f9eb /addons/web/static/src/js/views | |
| parent | d2f024d25437cd1893e727c702aafa9cfb23c3e6 (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/views')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_editable_renderer.js | 2 |
1 files changed, 0 insertions, 2 deletions
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')] |
