changeset 56767206f09b in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=56767206f09b
description:
Make widget children inherits the min-height
This ensure that the children widget will expand vertically.
issue10899
review385281002
(grafted from 31daa1b8a9867dfb205106f2772f2a707a033f19)
diffstat:
src/view/form.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 49df68bc6335 -r 56767206f09b src/view/form.js
--- a/src/view/form.js Tue Oct 26 19:40:49 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');