From d1fbd46421ca322abea39458c4e447ac6429b8f7 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 : 7.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 495ae6b2e3..9af84dbcc9 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -3472,7 +3472,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'); @@ -3976,7 +3976,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');