summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/list/list_editable_renderer.js4
1 files changed, 3 insertions, 1 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 37dd33cd2ef..3a324e5bf5f 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
@@ -335,10 +335,12 @@ ListRenderer.include({
// When switching to edit mode, force the dimensions of all cells to
// their current value so that they won't change if their content
// changes, to prevent the view from flickering.
+ // We need to use getBoundingClientRect instead of outerWidth to
+ // prevent a rounding issue on Firefox.
if (editMode) {
$tds.each(function () {
var $td = $(this);
- $td.css({width: $td.outerWidth()});
+ $td.css({width: $td[0].getBoundingClientRect().width});
});
}