Make widget children inherits the min-height

This ensure that the children widget will expand vertically.

issue10899
review385281002
This commit is contained in:
Cédric Krier committed 2021-10-28 09:03:22 +02:00
1 parent 2100441353
commit 665dc6a402
1 file changed
+3
+3
View File
@@ -75,6 +75,9 @@ function eval_pyson(value){
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');