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
This commit is contained in:
Cédric Krier committed 2025-09-02 14:28:57 +02:00
1 parent 7f9096dd8f
commit d1fbd46421
1 file changed
+2 -2
+2 -2
View File
@@ -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');