From 7dbe58e6544ef2ae118240aecd0e856f94e341dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Mar 2020 23:23:13 +0100 Subject: [PATCH] Use 100% width for container with expanded cell and not inside another container. issue9129 review291221004 --- src/view/form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/form.js b/src/view/form.js index 901f5e727b..c93e2efcba 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -642,7 +642,9 @@ function eval_pyson(value){ i += colspan; }); }); - if (has_expand && this.el.closest('td').hasClass('xexpand')) { + if (has_expand && + (!this.el.closest('td').length || + this.el.closest('td').hasClass('xexpand'))) { this.el.css('width', '100%'); } else { this.el.css('width', '');