From 9b1dc601d4e473e6af22107ced82e5c402dc2388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Sep 2025 14:28:57 +0200 Subject: [PATCH] Update height of list-form when it is set on xxx2Many widget The current view element is the `list-form` so it is not found. Instead we must search from the content element of the xxx2Many widget because it replicate the CSS rule. Closes #14212 (grafted from 92e472849bc1bfe06e65cb05d6c1f30240e8786a) --HG-- branch : 6.0 --- sao/src/view/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sao/src/view/form.js b/sao/src/view/form.js index 49f43248a0..6264cd06f5 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -3283,7 +3283,7 @@ function eval_pyson(value){ this.screen.size_limit = size_limit; this.screen.display(); if (this.attributes.height !== undefined) { - this.screen.current_view.el + this.content .find('.treeview,.list-form').first() .css('min-height', this.attributes.height + 'px') .css('max-height', this.attributes.height + 'px'); @@ -3733,7 +3733,7 @@ function eval_pyson(value){ } this.screen.display(); if (this.attributes.height !== undefined) { - this.screen.current_view.el + this.content .find('.treeview,.list-form').first() .css('min-height', this.attributes.height + 'px') .css('max-height', this.attributes.height + 'px');