changeset 31daa1b8a986 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=31daa1b8a986
description:
        Make widget children inherits the min-height

        This ensure that the children widget will expand vertically.

        issue10899
        review385281002
diffstat:

 src/view/form.js |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r c7bf901a313c -r 31daa1b8a986 src/view/form.js
--- a/src/view/form.js  Thu Oct 28 09:02:01 2021 +0200
+++ b/src/view/form.js  Thu Oct 28 09:03:22 2021 +0200
@@ -75,6 +75,9 @@
 
             if (attributes.height !== undefined) {
                 widget.el.css('min-height', attributes.height + 'px');
+                if (widget.el.children().length == 1) {
+                    widget.el.children().css('min-height', 'inherit');
+                }
             }
             if (attributes.width !== undefined) {
                 widget.el.css('min-width', attributes.width + 'px');

Reply via email to