changeset d8c2aeb22aec in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=d8c2aeb22aec
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 08e25111c2d2 -r d8c2aeb22aec 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');