changeset f9bb3c7fd82f in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=f9bb3c7fd82f
description:
Use 100% width for container
with expanded cell and not inside another container.
issue9129
review291221004
diffstat:
src/view/form.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r c7bd1a068915 -r f9bb3c7fd82f src/view/form.js
--- a/src/view/form.js Mon Mar 09 18:21:27 2020 +0100
+++ b/src/view/form.js Tue Mar 17 23:23:13 2020 +0100
@@ -642,7 +642,9 @@
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', '');